html { scroll-behavior: smooth; }
body {
  background: #08070A; color: #EDE6D6;
  font-family: 'Jost', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 400;
  position: relative;
}

/* Body-level ambient purple glow — soft, drifts down the page */
body::after {
  content: ""; position: fixed; inset: -10%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 36% at 88% 95%, rgba(155, 79,232,.16), transparent 65%),
    radial-gradient(42% 30% at 10% 8%,  rgba(180,119,240,.13), transparent 65%),
    radial-gradient(36% 24% at 55% 50%, rgba(155, 79,232,.07), transparent 70%);
  filter: blur(40px);
}
body > * { position: relative; z-index: 1; }

html[data-lang="th"] body { font-family: 'IBM Plex Sans Thai', 'Jost', sans-serif; }
html[data-lang="th"] .font-display { font-family: 'Trirong', 'Cormorant Garamond', serif; letter-spacing: 0; }
html[data-lang="th"] .font-accent  { font-family: 'Trirong', 'Italiana', serif; }

.font-display { font-family: 'Cormorant Garamond', 'Trirong', serif; letter-spacing: -0.005em; font-weight: 500; }
.font-accent  { font-family: 'Italiana', 'Trirong', serif; letter-spacing: .04em; }

.display-xl { font-weight: 500; line-height: 1.02; }
.display-xl em, .display-xl i { font-style: italic; font-weight: 400; }

/* Film grain */
.grain::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/></svg>");
}

/* Brand accent palette — secondary tier pulled from the SIAM logo gradient */
:root {
  --brand: #9B4FE8;
  --brand-2: #B477F0;
  --brand-soft: #C8A7F2;
  --brand-glow: rgba(155,79,232,.35);
  --brand-glow-soft: rgba(155,79,232,.18);
}
.text-brand      { color: #9B4FE8; }
.text-brand-soft { color: #C8A7F2; }
.bg-brand        { background-color: #9B4FE8; }
.ring-brand      { box-shadow: 0 0 0 1px #9B4FE8; }
.glow-brand      { box-shadow: 0 20px 60px -20px var(--brand-glow); }

/* Aurora — gold dominant, purple as secondary atmosphere */
.aurora {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none; filter: blur(80px); opacity: .58;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(201,169,97,.34), transparent 60%),
    radial-gradient(38% 48% at 80% 22%, rgba(155, 79,232,.26), transparent 60%),
    radial-gradient(45% 55% at 72% 80%, rgba(176,121, 77,.24), transparent 60%),
    radial-gradient(34% 42% at 30% 92%, rgba(180,119,240,.22), transparent 60%),
    radial-gradient(28% 34% at 55% 55%, rgba(230,201,136,.16), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.05); }
}

.rule-gold { background: linear-gradient(90deg, transparent, rgba(201,169,97,.6), transparent); height: 1px; }

.text-gold-grad {
  background: linear-gradient(135deg, #F0DDA9 0%, #C9A961 45%, #8C6A2E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Brand purple gradient text — secondary tier for ~20-40% of accent text */
.text-brand-grad {
  background: linear-gradient(135deg, #F1DCFF 0%, #C8A7F2 35%, #9B4FE8 70%, #5A1FB0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-brand-grad-soft {
  background: linear-gradient(135deg, #F4E5FF 0%, #D5B6F8 50%, #B477F0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Section-level purple atmosphere — wrap a section in .glow-purple for an ambient bloom */
.glow-purple { position: relative; }
.glow-purple::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, rgba(155,79,232,.18), transparent 70%);
  filter: blur(60px);
}
.glow-purple > * { position: relative; z-index: 1; }

/* Persistent purple under-glow on hairline rules so the dividers feel branded */
.rule-gold {
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.6), rgba(180,119,240,.45), rgba(201,169,97,.6), transparent);
}

.glass { background: rgba(14,12,18,.55); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }

/* ============================================================
   BUTTONS — handcrafted gold with inset edge, sheen sweep, arrow
============================================================ */
.btn-gold {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  color: #0B0A0D; font-weight: 600; letter-spacing: .02em;
  background:
    linear-gradient(180deg,
      #F2E0AE 0%,
      #E6C988 22%,
      #D4B16C 52%,
      #B8945A 78%,
      #8C6A2E 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    inset 0 -1px 0 rgba(48,32,8,.45),
    inset 0 0 0 1px rgba(255,228,170,.18),
    0 1px 0 rgba(255,255,255,.06),
    0 10px 30px -10px rgba(201,169,97,.55),
    0 18px 50px -22px rgba(140,106,46,.6);
  overflow: hidden; isolation: isolate;
  transition: transform .25s cubic-bezier(.2,.7,.2,1),
              box-shadow .25s ease, filter .25s ease;
  cursor: pointer;
}
.btn-gold::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 35%);
  pointer-events: none; z-index: 0;
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 0%, transparent 35%,
    rgba(255,255,255,.55) 50%,
    transparent 65%, transparent 100%);
  transform: translateX(-130%);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
  pointer-events: none; z-index: 1;
}
.btn-gold > * { position: relative; z-index: 2; }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(48,32,8,.5),
    inset 0 0 0 1px rgba(255,228,170,.25),
    0 14px 36px -10px rgba(201,169,97,.75),
    0 24px 60px -20px rgba(140,106,46,.7),
    0 30px 80px -28px rgba(155,79,232,.55);
}
.btn-gold:hover::after { transform: translateX(130%); }
.btn-gold:active { transform: translateY(0); filter: brightness(.98); }

/* Auto-attached arrow that slides on hover */
.btn-gold .arrow,
.btn-ghost .arrow {
  display: inline-block; width: 14px; height: 1px; position: relative;
  background: currentColor;
  transition: width .35s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1);
}
.btn-gold .arrow::after,
.btn-ghost .arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px; transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
}
.btn-gold:hover .arrow,
.btn-ghost:hover .arrow { width: 22px; transform: translateX(2px); }

/* Ghost buttons — secondary tier in brand purple */
.btn-ghost {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: 1px solid rgba(180,119,240,.42);
  color: #EDE6D6;
  background: linear-gradient(180deg, rgba(155,79,232,.07), rgba(155,79,232,.01));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 6px 24px -16px rgba(155,79,232,.35);
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.btn-ghost:hover {
  background: linear-gradient(180deg, rgba(180,119,240,.18), rgba(155,79,232,.05));
  border-color: rgba(200,167,242,.85);
  color: #F4E9D2;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 18px 44px -16px rgba(155,79,232,.6),
    0 4px 18px -10px rgba(180,119,240,.5);
}
.btn-ghost .arrow::after { border-color: #C8A7F2; }
.btn-ghost:hover .arrow { background: #C8A7F2; }

/* ============================================================
   CARDS — hairline corner tick + softer lift
============================================================ */
.card {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid rgba(201,169,97,.14);
  transition: border-color .3s ease, transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease, background-color .35s ease;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  opacity: 0; transition: opacity .4s ease, transform .4s ease;
  z-index: 1;
}
.card::before {
  top: 12px; left: 12px;
  border-top: 1px solid rgba(230,201,136,.7);
  border-left: 1px solid rgba(230,201,136,.7);
  transform: translate(-4px,-4px);
}
.card::after {
  bottom: 12px; right: 12px;
  border-bottom: 1px solid rgba(230,201,136,.7);
  border-right: 1px solid rgba(230,201,136,.7);
  transform: translate(4px,4px);
}
.card:hover { border-color: rgba(201,169,97,.55); transform: translateY(-3px);
  box-shadow:
    0 30px 60px -28px rgba(201,169,97,.4),
    0 24px 50px -28px rgba(155,79,232,.22),
    0 1px 0 rgba(201,169,97,.08); }
.card:hover::before, .card:hover::after { opacity: 1; transform: translate(0,0); }

/* ============================================================
   LUXE IMAGE FRAME — hairline corner brackets + slow zoom on hover
============================================================ */
.luxe { position: relative; overflow: hidden; }
.luxe > img { transition: transform 1400ms cubic-bezier(.2,.7,.2,1), filter 800ms ease; }
.luxe:hover > img { transform: scale(1.055); filter: saturate(1.05) contrast(1.02); }

.luxe::before, .luxe::after,
.luxe > .corner-tl, .luxe > .corner-br {
  pointer-events: none;
}
.luxe::before {
  content: ""; position: absolute; top: 16px; left: 16px;
  width: 30px; height: 30px; z-index: 25;
  border-top: 1px solid rgba(240,221,169,.85);
  border-left: 1px solid rgba(240,221,169,.85);
  opacity: .9;
}
.luxe::after {
  content: ""; position: absolute; bottom: 16px; right: 16px;
  width: 30px; height: 30px; z-index: 25;
  border-bottom: 1px solid rgba(240,221,169,.85);
  border-right: 1px solid rgba(240,221,169,.85);
  opacity: .9;
}
.luxe-frame-rim {
  position: absolute; inset: 0; pointer-events: none; z-index: 24; border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(201,169,97,.18),
    inset 0 0 0 6px rgba(8,7,10,.18);
}

/* Auto-apply luxe treatment to every rounded image frame —
   any <div> with rounded-3xl + overflow-hidden that contains an <img> */
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img) > img {
  transition: transform 1400ms cubic-bezier(.2,.7,.2,1), filter 900ms ease;
  will-change: transform;
}
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img):hover > img {
  transform: scale(1.055); filter: saturate(1.06) contrast(1.02);
}
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img)::before,
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img)::after {
  content: ""; position: absolute; pointer-events: none; z-index: 22;
  width: 28px; height: 28px;
  transition: width .5s cubic-bezier(.2,.7,.2,1), height .5s cubic-bezier(.2,.7,.2,1), opacity .5s ease;
}
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img)::before {
  top: 14px; left: 14px;
  border-top: 1px solid rgba(240,221,169,.78);
  border-left: 1px solid rgba(240,221,169,.78);
}
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img)::after {
  bottom: 14px; right: 14px;
  border-bottom: 1px solid rgba(240,221,169,.78);
  border-right: 1px solid rgba(240,221,169,.78);
}
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img):hover::before,
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img):hover::after {
  width: 42px; height: 42px;
}

/* Top-right corner gets a subtle purple flourish — secondary accent */
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img) > .luxe-corner-tr {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; z-index: 22; pointer-events: none;
  border-top: 1px solid rgba(180,119,240,.55);
  border-right: 1px solid rgba(180,119,240,.55);
  opacity: 0; transition: opacity .6s ease, width .5s ease;
}
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img):hover > .luxe-corner-tr {
  opacity: 1; width: 32px;
}

/* Hairline rim inside every image frame for an etched/print feel + soft purple glow */
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img) {
  box-shadow:
    inset 0 0 0 1px rgba(201,169,97,.22),
    0 30px 80px -30px rgba(0,0,0,.8),
    0 18px 60px -30px rgba(155,79,232,.18) !important;
}
div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img):hover {
  box-shadow:
    inset 0 0 0 1px rgba(201,169,97,.32),
    0 36px 90px -28px rgba(0,0,0,.85),
    0 24px 70px -25px rgba(155,79,232,.30) !important;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* Phone mockup */
.phone {
  width: 280px; height: 580px; border-radius: 44px;
  background: linear-gradient(180deg,#1a1620,#0e0c12);
  border: 1px solid rgba(201,169,97,.25);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 30px 80px -20px rgba(0,0,0,.8),
    0 0 60px -10px rgba(201,169,97,.25);
  position: relative; overflow: hidden;
}
.phone .notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 100px; height: 26px; border-radius: 999px; background: #08070A; }
.phone-screen { position: absolute; inset: 12px; border-radius: 34px; background: radial-gradient(120% 60% at 50% 0%, rgba(201,169,97,.18), transparent 60%), #0b0910; overflow: hidden; }

.chip {
  position: absolute; padding: 12px 16px; border-radius: 16px;
  background: rgba(20,17,26,.85); border: 1px solid rgba(201,169,97,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
  animation: float 6s ease-in-out infinite;
}
.chip-2 { animation-delay: -2s; }
.chip-3 { animation-delay: -4s; }
.chip-4 { animation-delay: -1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.row-rise { opacity: 0; transform: translateY(20px); animation: rise .9s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Billing-mode visibility — scoped per pricing section so the two toggles work independently */
#packages[data-billing="monthly"] .annual-only,
#personal[data-billing="monthly"] .annual-only { display: none !important; }
#packages[data-billing="annual"]  .monthly-only,
#personal[data-billing="annual"]  .monthly-only { display: none !important; }

/* Save-10% badge */
.save-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .55rem; border-radius: 999px;
  background: linear-gradient(135deg, rgba(110,231,183,.22), rgba(201,169,97,.18));
  border: 1px solid rgba(110,231,183,.45);
  color: #BBF7D0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.save-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: #34D399;
  box-shadow: 0 0 8px rgba(52,211,153,.7);
}
html[data-lang="th"] .save-badge { text-transform: none; letter-spacing: .04em; font-size: 11px; }

/* Annual savings banner */
.savings-banner {
  background: linear-gradient(135deg, rgba(110,231,183,.10), rgba(201,169,97,.10));
  border: 1px solid rgba(110,231,183,.30);
  border-radius: 1.25rem;
}

/* Toggle */
.toggle { position: relative; width: 56px; height: 30px; border-radius: 999px; background: rgba(201,169,97,.15); border: 1px solid rgba(201,169,97,.3); cursor: pointer; }
.toggle .dot { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #E6C988; transition: left .25s ease; }
.toggle[aria-checked="true"] .dot { left: 31px; }

/* Language buttons */
.lang-btn {
  border: 1px solid rgba(180,119,240,.30);
  background: rgba(155,79,232,.06);
  color: #EDE6D6; cursor: pointer; padding: 6px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.lang-btn:hover:not([aria-pressed="true"]) {
  border-color: rgba(200,167,242,.65);
  background: rgba(155,79,232,.14);
  color: #C8A7F2;
  box-shadow: 0 6px 18px -10px rgba(155,79,232,.5);
}
.lang-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #E6C988, #C9A961);
  color: #0B0A0D; border-color: transparent; font-weight: 600;
}

/* FAQ */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-chev { transform: rotate(45deg); }
.faq-chev { transition: transform .25s ease; }

/* Form */
.field {
  width: 100%; background: rgba(255,255,255,.025);
  border: 1px solid rgba(201,169,97,.18); color: #EDE6D6;
  border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s ease, background-color .2s ease;
}
.field:focus {
  outline: none;
  border-color: rgba(180,119,240,.75);
  background: rgba(155,79,232,.05);
  box-shadow: 0 0 0 4px rgba(155,79,232,.10);
}
.field::placeholder { color: rgba(237,230,214,.4); }
label.lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: rgba(237,230,214,.7); }
html[data-lang="th"] label.lbl { text-transform: none; letter-spacing: .02em; font-size: 13px; }
html[data-lang="th"] [data-i18n-eyebrow] { text-transform: none; letter-spacing: .04em; }

a:focus-visible, button:focus-visible, .field:focus-visible, summary:focus-visible {
  outline: 2px solid #E6C988; outline-offset: 3px; border-radius: 6px;
}

/* Progress */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 70;
  background: linear-gradient(90deg, transparent 0%, #9B4FE8 30%, #E6C988 70%, #C9A961 100%);
  transition: width .08s linear;
  box-shadow: 0 0 14px rgba(155,79,232,.45), 0 0 10px rgba(230,201,136,.5);
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 44s linear infinite; }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* Editorial */
.pull-quote { position: relative; padding-left: 2.25rem; }
.pull-quote::before { content: ""; position: absolute; left: 0; top: .9rem; width: 1.75rem; height: 1px; background: linear-gradient(90deg, #C9A961, transparent); }

.step-numeral {
  font-family: 'Cormorant Garamond', 'Trirong', serif;
  font-weight: 400; font-style: italic;
  font-size: clamp(5rem, 11vw, 9rem); line-height: .9; letter-spacing: -.02em;
  background: linear-gradient(135deg, #F0DDA9 0%, #C9A961 45%, #5A4220 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-numeral.brand {
  background: linear-gradient(135deg, #F1DCFF 0%, #C8A7F2 35%, #9B4FE8 70%, #4A1799 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.display-couture {
  font-weight: 400; line-height: .98; letter-spacing: -.025em;
  font-size: clamp(3rem, 7.6vw, 6.75rem);
}
.display-couture em, .display-couture i { font-weight: 300; font-style: italic; }
html[data-lang="th"] .display-couture { line-height: 1.15; letter-spacing: 0; font-size: clamp(2.25rem, 5.6vw, 4.5rem); }

.nav-active { color: #E6C988 !important; }

.tile {
  background: linear-gradient(180deg, rgba(155,79,232,.04), rgba(255,255,255,.012));
  border: 1px solid rgba(180,119,240,.22);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: border-color .3s ease, background .3s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  display: block;
}
.tile:hover {
  border-color: rgba(200,167,242,.7);
  background: linear-gradient(180deg, rgba(155,79,232,.13), rgba(155,79,232,.02));
  transform: translateY(-3px);
  box-shadow:
    0 26px 60px -28px rgba(155,79,232,.5),
    0 14px 40px -24px rgba(201,169,97,.25),
    inset 0 1px 0 rgba(255,255,255,.06);
}

/* Brand logo image — neutralises the black PNG background on dark surfaces */
.brand-logo {
  display: inline-block; flex-shrink: 0;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
}

/* Mobile menu */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(180,119,240,.32);
  background: rgba(155,79,232,.07);
  color: #EDE6D6; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.menu-btn:hover {
  background: rgba(155,79,232,.16);
  border-color: rgba(200,167,242,.7);
  box-shadow: 0 8px 22px -10px rgba(155,79,232,.55);
}
.menu-btn svg line { transition: transform .3s ease, opacity .25s ease; transform-origin: center; }
.menu-btn[aria-expanded="true"] svg line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] svg line:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] svg line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(8,7,10,.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(420px, 92vw);
  background: linear-gradient(180deg, #0E0C12 0%, #08070A 100%);
  border-left: 1px solid rgba(201,169,97,.2);
  box-shadow: -30px 0 80px -20px rgba(0,0,0,.8);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.7,.0,.2,1);
  display: flex; flex-direction: column;
  padding: 28px 28px 32px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }

.drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; border-bottom: 1px solid rgba(155,79,232,.18);
  font-family: 'Cormorant Garamond','Trirong',serif; font-size: 1.75rem; color: #EDE6D6;
  transition: color .25s ease, padding-left .25s ease, background-color .25s ease;
}
.drawer-link:hover {
  color: #C8A7F2; padding-left: 10px;
  background: linear-gradient(90deg, rgba(155,79,232,.08), transparent);
}
html[data-lang="th"] .drawer-link { font-family: 'Trirong','Cormorant Garamond',serif; }

body.no-scroll { overflow: hidden; }

/* ============================================================
   MICRO-INTERACTIONS — package spotlight, custom cursor, magnetic CTAs
============================================================ */

/* Package spotlight — hovered card forward + purple glow, siblings recede */
.pkg-grid > article {
  transition:
    transform .45s cubic-bezier(.2,.7,.2,1),
    opacity .45s ease,
    filter .45s ease,
    box-shadow .45s ease,
    border-color .35s ease;
  will-change: transform, opacity, filter;
}
.pkg-grid:has(> article:hover) > article:not(:hover) {
  opacity: .42;
  filter: saturate(.65) blur(.5px);
  transform: scale(.975);
}
.pkg-grid > article:hover {
  transform: translateY(-8px) scale(1.025);
  z-index: 5;
  border-color: rgba(200,167,242,.75) !important;
  box-shadow:
    0 50px 100px -30px rgba(155,79,232,.55),
    0 30px 80px -28px rgba(201,169,97,.32),
    0 0 0 1px rgba(200,167,242,.5),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.pkg-grid > article:hover::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, rgba(155,79,232,.30), transparent 70%);
  filter: blur(28px); opacity: 0; animation: pkgGlow .6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes pkgGlow {
  to { opacity: 1; }
}

/* Custom premium cursor — dot + trailing ring. Hidden on touch & small screens. */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 100;
  border-radius: 999px;
  will-change: transform;
  transform: translate(-100px, -100px);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: radial-gradient(circle, #C8A7F2 0%, #9B4FE8 100%);
  box-shadow: 0 0 12px rgba(155,79,232,.85), 0 0 24px rgba(155,79,232,.45);
  mix-blend-mode: screen;
  transition: width .25s ease, height .25s ease, opacity .25s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(230,201,136,.55);
  box-shadow: 0 0 24px rgba(230,201,136,.18);
  transition: width .3s cubic-bezier(.2,.7,.2,1), height .3s cubic-bezier(.2,.7,.2,1),
              border-color .25s ease, background .3s ease, opacity .25s ease;
}
body.cursor-hot .cursor-dot {
  width: 3px; height: 3px; opacity: .85;
}
body.cursor-hot .cursor-ring {
  width: 58px; height: 58px;
  border-color: rgba(200,167,242,.85);
  background: radial-gradient(circle, rgba(155,79,232,.10), transparent 70%);
}
body.cursor-pulse .cursor-ring {
  width: 80px; height: 80px;
  border-color: rgba(200,167,242,.55);
  background: radial-gradient(circle, rgba(155,79,232,.18), transparent 70%);
}

/* Hide custom cursor on touch & coarse pointers */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* Toggle dot — subtle bounce when state changes */
.toggle .dot { transition: left .35s cubic-bezier(.34,1.56,.64,1); }
.toggle:active .dot { transform: scale(.92); }

/* Faint hairline underline grow on FAQ summary hover */
details > summary { position: relative; }
details > summary > span:first-child {
  background-image: linear-gradient(90deg, rgba(200,167,242,.7), rgba(230,201,136,.7));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .45s cubic-bezier(.2,.7,.2,1);
  padding-bottom: 2px;
}
details > summary:hover > span:first-child {
  background-size: 100% 1px;
}

/* Drawer-link arrow nudge */
.drawer-link > span:last-child {
  display: inline-block;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.drawer-link:hover > span:last-child { transform: translateX(6px); }

/* Phone mockup — soft 3D tilt enabled by JS via CSS variable */
.phone { transition: transform .9s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }

/* ============================================================
   TOUCH GUARDS — prevent sticky hover states after taps on phones/tablets
============================================================ */
@media (hover: none), (pointer: coarse) {
  /* Disable package spotlight (the dim-others effect sticks after tap) */
  .pkg-grid:has(> article:hover) > article:not(:hover) {
    opacity: 1 !important; filter: none !important; transform: none !important;
  }
  .pkg-grid > article:hover { transform: none !important; }

  /* Feature images don't zoom on touch — also sticky */
  div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img):hover > img {
    transform: none !important; filter: none !important;
  }
  div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img):hover::before,
  div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img):hover::after {
    width: 28px !important; height: 28px !important;
  }

  /* Card hover tick brackets stay quiet */
  .card:hover::before, .card:hover::after { opacity: 0 !important; transform: translate(0,0); }

  /* Btn-gold sheen sweep doesn't trigger on touch hover */
  .btn-gold:hover::after { transform: translateX(-130%) !important; }
}

/* ============================================================
   MOBILE PASS — tighten / hide / resize below 640px
============================================================ */
@media (max-width: 640px) {

  /* — Atmosphere: softer, lighter GPU load — */
  body::after { opacity: .5; filter: blur(26px); }
  .aurora { opacity: .42; filter: blur(46px); }

  /* — Nav: snug to edges, tighter padding — */
  header.glass { top: .5rem; left: .5rem; right: .5rem; border-radius: 1rem; }
  header.glass > nav { padding: .5rem .75rem; }

  /* — Section padding: recover real estate — */
  section[class*="py-28"], section[class*="py-24"] { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  section[class*="py-20"]                          { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  section[class*="py-16"]                          { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  section[class*="py-10"]                          { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
  section[class*="pt-32"], section[class*="pt-40"] { padding-top: 5.5rem !important; }
  section[class*="pb-28"]                          { padding-bottom: 3rem !important; }
  section[class*="pb-24"]                          { padding-bottom: 2.5rem !important; }
  section[class*="pb-16"], section[class*="pb-12"] { padding-bottom: 1.75rem !important; }
  section[class*="pb-8"]                           { padding-bottom: .75rem !important; }

  /* — Couture hero h1: lower clamp floor, tighter leading — */
  .display-couture { font-size: clamp(2.25rem, 8.5vw, 3.25rem) !important; line-height: 1.04; letter-spacing: -.02em; }
  html[data-lang="th"] .display-couture { font-size: clamp(1.85rem, 7vw, 2.5rem) !important; line-height: 1.2; }

  /* — h2 family — */
  h2.text-4xl, h2.font-display.text-4xl,
  h1.font-display.text-5xl, h2.font-display.text-5xl { font-size: 1.95rem !important; line-height: 1.08; }
  h3.font-display.text-3xl, h3.font-display.text-2xl { font-size: 1.5rem !important; line-height: 1.15; }

  /* — Display numerals shrink — */
  .font-display.text-5xl.text-gold-grad,
  .font-display.text-5xl.text-brand-grad { font-size: 2.5rem !important; }
  .step-numeral { font-size: clamp(3rem, 13vw, 4.5rem) !important; }

  /* — Hero phone: scale down, absorb the extra height — */
  .phone { transform: scale(.78); transform-origin: top center; margin-bottom: -5.5rem; }

  /* — Hide hairline corner brackets on image frames (too busy at this scale) — */
  div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img)::before,
  div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img)::after,
  div[class*="rounded-3xl"][class*="overflow-hidden"]:has(> img) > .luxe-corner-tr {
    display: none !important;
  }

  /* — Card padding: recover space — */
  .card.p-7, .card.p-8,
  .pkg-grid > article.card,
  .pkg-grid > article[class*="rounded-3xl"] { padding: 1.25rem !important; }
  .tile { padding: 1.15rem !important; }

  /* — Pricing card numerals — */
  .price.text-5xl, span.price.text-5xl { font-size: 2.25rem !important; }
  .price.text-4xl, div.price.text-4xl  { font-size: 1.85rem !important; }

  /* — Service area font-display lists scale down — */
  ul.font-display.text-3xl { font-size: 1.5rem !important; }

  /* — Drawer: bigger touch targets, tighter type — */
  .drawer { padding: 1.5rem 1.25rem 2rem; }
  .drawer-link { font-size: 1.4rem; padding: 14px 2px; }

  /* — Marquee tighter, slower — */
  .marquee-track { gap: 1.75rem; animation-duration: 36s; }
  .marquee-track > span { gap: 1.75rem !important; }

  /* — Forms: tighter — */
  .field { padding: 10px 12px; font-size: 15px; }
  label.lbl { font-size: 11px; letter-spacing: .12em; }

  /* — Footer: tighter — */
  footer .grid.gap-10 { gap: 1.75rem !important; }
  footer .py-16 { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }

  /* — Reveal travel distance reduced (less jank) — */
  .reveal { transform: translateY(14px); }

  /* — Eyebrow tracking eased so it stops wrapping mid-word — */
  [data-i18n-eyebrow], .text-gold2.uppercase { letter-spacing: .14em !important; }

  /* — Status pills hide on the absolute-positioned image overlays already (md:inline-flex) — */
  /* — Floating chips around the phone already hidden sm: — */

  /* — Toggle row wraps cleanly on Packages — */
  /* (Tailwind flex-col already handles this) */
}

/* — Very small phones — */
@media (max-width: 380px) {
  .display-couture { font-size: clamp(1.85rem, 7.8vw, 2.4rem) !important; }
  h2.text-4xl, h2.font-display.text-4xl { font-size: 1.75rem !important; }
  .phone { transform: scale(.7); margin-bottom: -7rem; }
  .price.text-5xl, span.price.text-5xl { font-size: 2rem !important; }
  .step-numeral { font-size: 2.5rem !important; }
  header.glass > nav { padding: .45rem .65rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .aurora, .chip, .marquee-track { animation: none !important; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .progress, .drawer, .drawer-backdrop, .menu-btn svg line { transition: none !important; }
  .pkg-grid > article, .pkg-grid > article:hover { transform: none !important; }
  .pkg-grid:has(> article:hover) > article:not(:hover) { opacity: 1 !important; filter: none !important; transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  html { scroll-behavior: auto; }
}
