:root {
  color-scheme: light;
  --ink: #3d3740;
  --muted: #77717a;
  --line: #eadce8;
  --paper: #fff9fd;
  --soft: #f8eef7;
  --blush: #f8dff1;
  --mist: #dff2f7;
  --lilac: #e8ddf5;
  --plum: #7a236f;
  --terracotta: #a66785;
  --moss: #596f54;
  --rose: #b86f75;
  --amber: #c08b3f;
  --blue: #486f8c;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(101, 72, 111, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(248, 223, 241, 0.34), rgba(223, 242, 247, 0.26) 42%, rgba(255, 249, 253, 0.9) 70%),
    var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
.brand,
.section-label {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 249, 253, 0.82);
  border-bottom: 1px solid rgba(234, 220, 232, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-actions,
.hero-actions,
.footer-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  overflow: hidden;
  background: #f9edf8;
  border-radius: 50%;
  border: 1px solid rgba(122, 34, 111, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.header-actions,
.footer-actions {
  gap: 10px;
}

.header-cta,
.primary-button,
.secondary-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(122, 35, 111, 0.22);
  border-radius: 999px;
  font-weight: 700;
  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
  will-change: transform;
}

.header-cta::before,
.primary-button::before,
.secondary-button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.42) 45%, transparent 62% 100%);
  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity 180ms ease,
    transform 520ms ease;
}

.header-cta:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 35, 111, 0.38);
  box-shadow: 0 18px 38px rgba(122, 35, 111, 0.22);
}

.header-cta:hover::before,
.primary-button:hover::before,
.secondary-button:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.header-cta:active,
.primary-button:active,
.secondary-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 8px 18px rgba(122, 35, 111, 0.14);
}

.header-cta:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(122, 35, 111, 0.2);
  outline-offset: 4px;
}

.header-cta,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, #7a236f, #b26a99);
  box-shadow: 0 12px 28px rgba(122, 35, 111, 0.2);
}

.secondary-button {
  color: var(--plum);
  background: rgba(255, 255, 255, 0.62);
}

.line-cta,
.line-button {
  color: #ffffff;
  background: linear-gradient(135deg, #21b65f, #8ad99d);
  border-color: rgba(33, 182, 95, 0.28);
  box-shadow: 0 12px 28px rgba(33, 182, 95, 0.2);
}

.line-button {
  animation: softPulse 2.8s ease-in-out infinite;
}

.line-cta:hover,
.line-button:hover {
  border-color: rgba(33, 182, 95, 0.44);
  box-shadow: 0 18px 38px rgba(33, 182, 95, 0.26);
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(33, 182, 95, 0.2);
  }

  50% {
    box-shadow: 0 16px 36px rgba(33, 182, 95, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-cta,
  .primary-button,
  .secondary-button,
  .header-cta::before,
  .primary-button::before,
  .secondary-button::before {
    transition: none;
  }

  .line-button {
    animation: none;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  min-height: auto;
  margin: 18px clamp(18px, 4vw, 56px) 0;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 5vw, 76px);
  gap: clamp(26px, 5vw, 76px);
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 253, 0.82) 34%, rgba(222, 242, 248, 0.72) 100%),
    linear-gradient(35deg, rgba(248, 223, 241, 0.74), rgba(220, 242, 248, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(91, 72, 95, 0.12);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 190px;
  content: "";
  opacity: 0.28;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 12px, rgba(122, 35, 111, 0.28) 13px 14px, transparent 15px 25px);
  transform: rotate(-12deg);
}

.hero::before {
  top: 18px;
  left: -120px;
}

.hero::after {
  right: -120px;
  bottom: -34px;
  opacity: 0.2;
  transform: rotate(18deg);
}

.hero-copy {
  justify-self: center;
  max-width: 760px;
  text-align: center;
}

.hero-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 1px solid rgba(122, 35, 111, 0.12);
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(122, 35, 111, 0.14);
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--plum);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 5.8vw, 86px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
  color: rgba(61, 55, 64, 0.78);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.lead {
  max-width: 690px;
  margin-right: auto;
  margin-bottom: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-collage {
  position: relative;
  min-height: clamp(360px, 37vw, 440px);
}

.polaroid {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 12px solid #fff;
  border-bottom-width: 46px;
  border-radius: 3px;
  box-shadow: 0 22px 60px rgba(67, 52, 72, 0.18);
}

.polaroid img {
  height: 100%;
  object-fit: cover;
}

.polaroid-main {
  top: 0;
  left: 20%;
  width: 52%;
  aspect-ratio: 1;
  height: auto;
  transform: rotate(0.5deg);
}

.polaroid-second {
  top: 33%;
  left: 3%;
  z-index: 2;
  width: 56%;
  aspect-ratio: 1;
  height: auto;
  transform: rotate(7deg);
}

.polaroid-third {
  right: 3%;
  bottom: 8%;
  width: 37%;
  aspect-ratio: 1;
  height: auto;
  transform: rotate(-7deg);
}

.sparkle {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(122, 35, 111, 0.28);
  transform: rotate(45deg) skew(8deg, 8deg);
}

.sparkle.one {
  right: 20%;
  bottom: 18%;
}

.sparkle.two {
  right: 34%;
  bottom: 5%;
  width: 16px;
  height: 16px;
  border-color: rgba(72, 111, 140, 0.3);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: clamp(18px, 4vw, 48px) clamp(18px, 4vw, 56px) 0;
  overflow: hidden;
  background: rgba(234, 220, 232, 0.8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
}

.intro-item {
  min-height: 190px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.68);
}

.intro-item span {
  display: block;
  margin-bottom: 28px;
  color: var(--terracotta);
  font-weight: 700;
}

.intro-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.intro-item p,
.choice-card p,
.order-steps p,
.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.split-section,
.gallery-section,
.video-section,
.birthday-section,
.order-section {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 56px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.custom-copy {
  max-width: 620px;
}

.custom-copy h2 {
  max-width: 600px;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1.18;
}

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

.choice-card {
  min-height: 260px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(234, 220, 232, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(122, 35, 111, 0.06);
}

.choice-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 18px;
  font-size: 25px;
  box-shadow: inset 8px -10px 18px rgba(255, 255, 255, 0.42), 0 14px 30px rgba(91, 72, 95, 0.1);
}

.choice-icon.work {
  background: linear-gradient(135deg, #dfe9f3, #b8c9dc);
}

.choice-icon.money {
  background: linear-gradient(135deg, #f8e8b2, #d4a24f);
}

.choice-icon.love {
  color: #9c487e;
  background: linear-gradient(135deg, #fde0ef, #e6b1ca);
}

.choice-icon.health {
  color: #466b55;
  background: linear-gradient(135deg, #e3f4dc, #a7d4b6);
}

.gallery-section {
  background:
    linear-gradient(135deg, rgba(255, 245, 251, 0.98), rgba(230, 246, 249, 0.72)),
    #fff5fb;
}

.section-intro {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.gallery-slider {
  position: relative;
}

.gallery-window {
  overflow: hidden;
  padding: 8px 2px 28px;
}

.gallery-track {
  display: grid;
  grid-auto-columns: minmax(320px, 36%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 0 4px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: auto;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.96), rgba(248, 223, 241, 0.36) 58%, rgba(223, 242, 247, 0.38)),
    var(--white);
  border: 10px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(91, 72, 95, 0.11);
  scroll-snap-align: start;
}

.gallery-card img {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  padding: 12px;
  object-fit: contain;
  object-position: center;
  transition: transform 420ms ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card figcaption {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  margin: auto 12px 12px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.55;
  backdrop-filter: blur(10px);
}

.gallery-card figcaption span {
  display: block;
  margin-bottom: 0;
  color: var(--plum);
  font-weight: 700;
}

.slider-button {
  position: absolute;
  top: 45%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(122, 35, 111, 0.2);
  border-radius: 50%;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(91, 72, 95, 0.14);
  cursor: pointer;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  backdrop-filter: blur(10px);
}

.slider-button:hover {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(122, 35, 111, 0.2);
  transform: translateY(-50%) scale(1.06);
}

.slider-button:active {
  transform: translateY(-50%) scale(0.96);
}

.slider-button.prev {
  left: -16px;
}

.slider-button.next {
  right: -16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(122, 35, 111, 0.22);
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.slider-dot.active {
  width: 24px;
  background: var(--plum);
  border-radius: 999px;
}

.video-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background:
    radial-gradient(circle at 82% 20%, rgba(248, 223, 241, 0.62), transparent 32%),
    linear-gradient(135deg, rgba(255, 249, 253, 0.96), rgba(230, 246, 249, 0.62));
}

.video-copy {
  max-width: 560px;
}

.video-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1.12;
}

.video-copy h2 span {
  display: block;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.video-frame {
  width: min(100%, 520px);
  margin-left: auto;
  padding: clamp(12px, 2vw, 18px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 251, 0.8)),
    var(--white);
  border: 1px solid rgba(234, 220, 232, 0.9);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(91, 72, 95, 0.12);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 6px;
}

.birthday-section {
  background: linear-gradient(135deg, rgba(232, 221, 245, 0.62), rgba(223, 242, 247, 0.7));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.day-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.day-button {
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(122, 35, 111, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.day-button-light {
  background: rgba(227, 244, 220, 0.76);
}

.day-button-night {
  color: #ffffff;
  background: rgba(45, 45, 48, 0.86);
}

.day-button.active {
  color: var(--white);
  background: var(--plum);
}

.birthday-result {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 820px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
}

.palette-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.palette-preview span {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -7px 8px 12px rgba(0, 0, 0, 0.14);
}

.birthday-result p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.birthday-result p:last-child {
  margin-bottom: 0;
}

.birthday-result strong {
  color: var(--ink);
}

.order-section {
  background: var(--paper);
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.order-steps li {
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(234, 220, 232, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(122, 35, 111, 0.06);
  counter-increment: step;
}

.order-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 32px;
  color: var(--terracotta);
  font-weight: 700;
}

.order-steps span {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 700;
}

.site-footer {
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(248, 223, 241, 0.8), rgba(223, 242, 247, 0.82));
}

.site-footer p {
  color: var(--muted);
}

.compact {
  border-color: rgba(122, 35, 111, 0.22);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero,
  .split-section,
  .video-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .intro-band,
  .order-steps {
    grid-template-columns: 1fr;
  }

  .gallery-track {
    grid-auto-columns: minmax(260px, 74%);
  }

  .video-frame {
    margin-right: auto;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span:last-child {
    max-width: 128px;
    line-height: 1.15;
  }

  .header-actions {
    gap: 6px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 11px;
    font-size: 14px;
  }

  .hero {
    margin-top: 14px;
    padding: 22px 20px 30px;
  }

  .hero-collage {
    min-height: 245px;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .lead {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 9px;
  }

  .gallery-track {
    grid-auto-columns: 86%;
  }

  .gallery-card img {
    height: auto;
  }

  .video-copy h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .video-frame {
    width: 100%;
  }

  .slider-button {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .slider-button.prev {
    left: -8px;
  }

  .slider-button.next {
    right: -8px;
  }

  .choice-grid,
  .birthday-result {
    grid-template-columns: 1fr;
  }

  .palette-preview {
    max-width: 220px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
}
