/* หน้าเริ่มต้นของเว็บใหม่ (deploy-system new-project) ตาม CI ของ Andaman Web Studio (Brand Book ฉบับธันวาคม 2026)
   ทะเลนำ ปะการังจุดเดียว (จุดสถานะ) · Sora เฉพาะตัวละติน Anuphan หัวข้อไทย IBM Plex Sans Thai เนื้อหา
   ลายคลื่นอยู่แถบล่างสุด ไม่ทับตัวหนังสือ · เว็บจริงแทนทั้งโฟลเดอร์ site/ ได้เลย */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(fonts/sora-latin-600-700.woff2) format("woff2"); }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/anuphan-thai-500-700.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/anuphan-latin-500-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-thai-thai-400.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/ibm-plex-sans-thai-thai-600.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-thai-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/ibm-plex-sans-thai-latin-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* พาเลตต์ทะเลอันดามัน: ค่าเริ่มต้นเป็นพื้นทะเลลึกแบบหน้าปก brand book โหมดสว่างใช้พื้นกระดาษ */
:root {
  color-scheme: dark light;
  --deep: #0B2C55; --foam: #E4F6F9; --lagoon: #7EDFE8; --sea: #0B66A6; --coral: #FF7A59;
  --bg: var(--deep);
  --ink: var(--foam);
  --mut: #A8C6DE;
  --acc: var(--lagoon);
  --line: #1F4370;
  --raised: #0F3463;
  --btn-bg: var(--lagoon); --btn-ink: var(--deep);
  --font-brand: "Sora", "Anuphan", system-ui, sans-serif;
  --font-head: "Anuphan", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad-x: max(6vw, 20px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F6FAFC; --ink: var(--deep); --mut: #3B5672; --acc: var(--sea);
    --line: #BFDDEB; --raised: #FFFFFF;
    --btn-bg: var(--sea); --btn-ink: #FFFFFF;
  }
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; border-radius: 6px; }
.nw { white-space: nowrap; }

.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

/* ---- แถบบน: สถานะ (ปะการังจุดเดียวของหน้า) และป้าย staging */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(28px, env(safe-area-inset-top, 0px)) var(--pad-x) 0;
}
.status {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--raised);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.status .sep { color: var(--mut); }
.status [lang="en"] { color: var(--mut); font-weight: 400; }
.pulse { position: relative; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--coral); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--coral);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.8); opacity: 0; } }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px;
  border: 1.5px solid var(--acc); border-radius: 999px; color: var(--acc);
  font-size: 13px; font-weight: 600;
}
.chip [lang="en"] { font-family: var(--font-brand); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.chip[hidden] { display: none; }

/* ---- เนื้อหาหลัก */
.hero {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 1200px; padding: clamp(48px, 9vh, 112px) var(--pad-x) clamp(40px, 7vh, 88px);
}
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: clamp(14px, 2.2vh, 22px);
  color: var(--acc); font-weight: 600; font-size: 15px;
}
.eyebrow::before { content: ""; width: 36px; height: 3px; border-radius: 3px; background: currentColor; }
.domain {
  margin: 0; font-family: var(--font-brand); font-weight: 700;
  font-size: clamp(40px, 8.4vw, 124px); line-height: 1.04; letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.js .domain { white-space: nowrap; }
.js .domain.wrap { white-space: normal; overflow-wrap: normal; line-height: 1.12; }
.domain .tld { color: var(--acc); }
.lead {
  margin-top: clamp(18px, 3vh, 30px); font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.3; text-wrap: balance;
}
.copy { margin-top: 14px; max-width: 56ch; color: var(--mut); font-size: clamp(16px, 1.25vw, 18px); text-wrap: pretty; }
.copy-en { margin-top: 6px; max-width: 60ch; color: var(--mut); font-size: 15px; }
.button {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; margin-top: 28px; padding: 0 26px;
  border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s var(--ease);
}
.button:hover { transform: translateY(-2px); }

/* ---- ท้ายหน้า: เครดิตของสตูดิโอ แล้วแถบคลื่น (ตกแต่งอย่างเดียว ไม่มีตัวหนังสือทับ) */
.foot { padding: 0 var(--pad-x) clamp(20px, 3.4vh, 32px); }
.credit { display: inline-flex; flex-direction: column; gap: 8px; padding: 6px 0; text-decoration: none; }
.credit small { color: var(--mut); font-size: 13px; }
.credit img { display: block; width: clamp(160px, 15vw, 210px); height: auto; transition: transform .25s var(--ease); }
.credit:hover img { transform: translateY(-2px); }
.waves { position: relative; height: clamp(96px, 15vh, 150px); overflow: hidden; flex: none; }
.waves::before {
  content: ""; position: absolute; inset: 0 -80px 0 0;
  background: url(waves.svg) 0 0 / 80px 120px repeat;
  animation: drift 9s linear infinite;
}
@keyframes drift { to { transform: translateX(-80px); } }

/* ---- เข้าทีละส่วน (มี JS เท่านั้น ไม่มี JS เห็นครบทันที) */
.js .rise { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
.js .d1 { animation-delay: .05s; } .js .d2 { animation-delay: .15s; } .js .d3 { animation-delay: .28s; }
.js .d4 { animation-delay: .4s; } .js .d5 { animation-delay: .52s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .top { padding-top: max(20px, env(safe-area-inset-top, 0px)); }
  .status { font-size: 13px; }
  .status .sep, .status [lang="en"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse::after, .waves::before { animation: none; }
  .pulse::after { opacity: 0; }
  .js .rise { opacity: 1; transform: none; animation: none; }
  .button, .credit img { transition: none; }
}
@media (forced-colors: active) {
  .waves { display: none; }
}
