/* ==========================================================================
   วงใน — ธีมขาวดำ
   ========================================================================== */
:root{
  --bg:        #050505;
  --surface:   #111111;
  --surface-2: #1b1b1b;
  --line:      #2b2b2b;
  --white:     #ffffff;
  --text:      #f3f3f3;
  --text-dim:  #a3a3a3;
  --text-faint:#6b6b6b;

  --font-display: "Kanit", "Noto Sans Thai", sans-serif;
  --font-body:    "Sarabun", "Noto Sans Thai", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --radius:    14px;
  --radius-sm: 8px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  min-height:100vh;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ font-family:var(--font-display); margin:0; letter-spacing:.2px; }
.container{ width:min(1100px, 92vw); margin-inline:auto; }

svg.icon{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; }

/* subtle dot-grid texture */
body::before{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image:radial-gradient(var(--line) 1px, transparent 1px);
  background-size:26px 26px;
  opacity:.35;
  mask-image:radial-gradient(ellipse 90% 60% at 50% 0%, black 10%, transparent 75%);
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader{
  position:fixed; inset:0; z-index:999;
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:18px;
  background:var(--bg);
  transition:opacity .6s ease, visibility .6s ease;
}
.loader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.spinner{
  width:52px; height:52px; border-radius:50%;
  border:3px solid var(--line);
  border-top-color:var(--white);
  animation:spin .9s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.loader-label{
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.16em;
  color:var(--text-faint); text-transform:uppercase;
}

/* ==========================================================================
   Reveal-on-load animations
   ========================================================================== */
.reveal{
  opacity:0; transform:translateY(18px);
  transition:opacity .7s ease, transform .7s cubic-bezier(.34,1.56,.64,1);
  transition-delay:var(--d, 0s);
}
body.is-loaded .reveal{ opacity:1; transform:translateY(0); }

.reveal-logo{
  opacity:0; transform:translateY(26px) scale(.72);
  transition:opacity .8s ease, transform .8s cubic-bezier(.34,1.56,.64,1);
  transition-delay:var(--d, 0s);
}
body.is-loaded .reveal-logo{ opacity:1; transform:translateY(0) scale(1); }

/* ==========================================================================
   Top bar / hamburger + drawer
   ========================================================================== */
.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px min(1100px, 4vw);
  backdrop-filter:blur(10px);
  background:linear-gradient(to bottom, rgba(5,5,5,.92), rgba(5,5,5,.55));
  border-bottom:1px solid var(--line);
}

.menu-btn{
  --w1:26px; --w2:18px; --w3:22px;
  position:relative;
  width:44px; height:40px;
  display:flex; flex-direction:column; justify-content:center; gap:6px;
  background:none; border:none; cursor:pointer; padding:0 2px;
  z-index:60;
}
.menu-btn span{
  display:block; height:2.5px; border-radius:2px;
  background:var(--white);
  transition:transform .35s ease, opacity .25s ease, width .35s ease;
}
.menu-btn span:nth-child(1){ width:var(--w1); }
.menu-btn span:nth-child(2){ width:var(--w2); }
.menu-btn span:nth-child(3){ width:var(--w3); }
.menu-btn:hover span{ width:26px; }

.menu-btn.is-open span:nth-child(1){ transform:translateY(8.5px) rotate(45deg); width:26px; }
.menu-btn.is-open span:nth-child(2){ opacity:0; }
.menu-btn.is-open span:nth-child(3){ transform:translateY(-8.5px) rotate(-45deg); width:26px; }

.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ width:34px; height:34px; border-radius:9px; object-fit:cover; box-shadow:0 0 0 1px var(--line); }
.brand-name{ font-family:var(--font-display); font-size:1.02rem; }

.topbar-cta{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 16px;
  border-radius:999px;
  background:var(--white);
  color:#000; font-weight:700; font-size:.9rem;
  transition:transform .2s ease, opacity .2s ease;
}
.topbar-cta:hover{ transform:translateY(-1px); opacity:.85; }
.topbar-cta img{ width:16px; height:16px; }

.drawer-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.65); backdrop-filter:blur(2px);
  opacity:0; pointer-events:none; transition:opacity .3s ease; z-index:50;
}
.drawer-backdrop.is-open{ opacity:1; pointer-events:auto; }

.drawer{
  position:fixed; top:0; left:0; height:100%; width:min(320px, 84vw);
  background:var(--surface);
  border-right:1px solid var(--line);
  transform:translateX(-104%);
  transition:transform .38s cubic-bezier(.16,.9,.28,1);
  z-index:55;
  padding:90px 26px 26px;
  display:flex; flex-direction:column; gap:6px;
}
.drawer.is-open{ transform:translateX(0); }
.drawer-label{ font-family:var(--font-mono); font-size:.72rem; letter-spacing:.14em; color:var(--text-faint); text-transform:uppercase; margin:10px 0 6px; }
.drawer a{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; border-radius:var(--radius-sm);
  color:var(--text-dim); font-weight:600;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.drawer a:hover{ background:var(--surface-2); color:var(--white); transform:translateX(2px); }
.drawer a.is-active{ color:var(--white); background:var(--surface-2); }
.drawer a img{ width:19px; height:19px; flex:none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{ position:relative; z-index:1; padding:64px 0 40px; }
.hero-grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.74rem; letter-spacing:.12em;
  color:var(--text-dim); text-transform:uppercase;
  padding:6px 12px; border:1px solid var(--line); border-radius:999px;
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--white); animation:pulse 1.6s infinite; }
@keyframes pulse{ 50%{ opacity:.3; } }

.hero h1{
  font-size:clamp(2.4rem, 5vw, 3.6rem); line-height:1.08; margin:18px 0 16px;
}
.hero h1 .accent{ color:var(--white); text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:8px; }
.hero p.lead{ color:var(--text-dim); font-size:1.08rem; max-width:46ch; margin-bottom:28px; }

.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:9px; font-weight:700; font-size:.95rem;
  padding:14px 24px; border-radius:12px; border:1px solid transparent; cursor:pointer;
  transition:transform .2s ease, opacity .2s ease, border-color .2s ease;
}
.btn img{ width:19px; height:19px; }
.btn-primary{ background:var(--white); color:#000; }
.btn-primary:hover{ transform:translateY(-2px); opacity:.88; }
.btn-ghost{ background:transparent; border-color:var(--line); color:var(--text); }
.btn-ghost:hover{ border-color:var(--white); }

.hero-art{ position:relative; display:flex; align-items:center; justify-content:center; }
.hero-art .logo-frame{
  position:relative; width:280px; height:280px; border-radius:34px; overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 30px 70px -20px #000c;
}
.hero-art .logo-frame img{ width:100%; height:100%; object-fit:cover; }

/* ==========================================================================
   Countdown marquee
   ========================================================================== */
.marquee{
  position:relative; z-index:1;
  margin:20px 0 64px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  padding:30px clamp(18px, 4vw, 44px);
  overflow:hidden;
}
.marquee-top{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-bottom:22px;
}
.marquee-title{ font-family:var(--font-mono); font-size:.8rem; letter-spacing:.14em; color:var(--white); text-transform:uppercase; }
.marquee-date{ font-family:var(--font-mono); font-size:.8rem; color:var(--text-dim); }

.clock{ display:flex; gap:clamp(10px,2.4vw,20px); justify-content:center; flex-wrap:wrap; }
.clock-unit{ text-align:center; min-width:78px; }
.clock-num{
  font-family:var(--font-mono); font-weight:700; font-size:clamp(2rem, 6vw, 3.2rem);
  color:var(--text);
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 4px;
  font-variant-numeric:tabular-nums;
}
.clock-label{ display:block; margin-top:8px; font-family:var(--font-mono); font-size:.68rem; letter-spacing:.1em; color:var(--text-faint); text-transform:uppercase; }
.clock-sep{ align-self:flex-start; margin-top:14px; font-family:var(--font-mono); font-size:1.6rem; color:var(--text-faint); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section{ position:relative; z-index:1; padding:52px 0; }
.section-head{ margin-bottom:32px; max-width:60ch; }
.section-head .eyebrow{ margin-bottom:14px; }
.section-head h2{ font-size:clamp(1.6rem, 3vw, 2.2rem); margin-bottom:10px; }
.section-head p{ color:var(--text-dim); }

.grid-3{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px 24px;
  transition:transform .25s ease, border-color .25s ease;
}
.card:hover{ transform:translateY(-4px); border-color:var(--white); }
.card .icon-wrap{
  width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:var(--surface-2); margin-bottom:16px; border:1px solid var(--line);
}
.card h3{ font-size:1.08rem; margin-bottom:8px; }
.card p{ color:var(--text-dim); font-size:.92rem; margin:0; }
.card .tag-unknown{
  display:inline-block; margin-top:14px; font-family:var(--font-mono); font-size:.68rem;
  color:var(--text-dim); border:1px solid var(--line);
  padding:3px 9px; border-radius:999px; letter-spacing:.06em;
}

/* people / role cards */
.role-group{ margin-bottom:30px; }
.role-group-head{
  display:flex; align-items:baseline; gap:10px; margin-bottom:14px;
}
.role-group-head h3{ font-size:1.05rem; }
.role-group-head span{ font-family:var(--font-mono); font-size:.75rem; color:var(--text-faint); }

.grid-people{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:16px; }
.person{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px; display:flex; gap:14px; align-items:center;
  transition:border-color .2s ease, transform .2s ease;
}
.person:hover{ border-color:var(--white); transform:translateY(-3px); }
.person .avatar{
  width:44px; height:44px; border-radius:12px; flex:none;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:1.05rem; color:#000;
  background:var(--white);
}
.person .handle{ color:var(--text); font-weight:600; font-size:.95rem; font-family:var(--font-mono); }

/* status page */
.status-banner{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:18px 22px; border-radius:var(--radius);
  border:1px solid var(--line); background:var(--surface); margin-bottom:36px;
}
.status-banner strong{ color:var(--white); }

/* footer */
footer{
  position:relative; z-index:1; margin-top:40px;
  border-top:1px solid var(--line);
  padding:34px 0 40px;
}
.footer-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.footer-brand{ display:flex; align-items:center; gap:10px; color:var(--text-dim); font-size:.9rem; }
.footer-brand img{ width:26px; height:26px; border-radius:7px; }
.footer-credit{ font-family:var(--font-mono); font-size:.78rem; color:var(--text-faint); }
.footer-credit b{ color:var(--white); }

@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-art{ order:-1; }
  .hero-art .logo-frame{ width:200px; height:200px; }
  .grid-3{ grid-template-columns:1fr; }
  .clock-sep{ display:none; }
}
