:root{
  --bg:#2f2f2f;            /* พื้นหลังเทาเข้ม */
  --panel:#222;            /* กรอบ/การ์ด */
  --ink:#eaeaea;           /* ตัวหนังสือหลัก */
  --muted:#bdbdbd;         /* ตัวหนังสือรอง */
  --line:#ffffff;          /* เส้นแบ่ง */
  --accent:#e65b57;        /* เน้น (ปุ่ม/หัวเรื่อง) */
  --radius:0px;
  --gap:18px;
  --maxw:1080px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.6 "Inter",system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}

.page{
  max-width:var(--maxw);
  margin:24px auto 56px;
  padding:0 16px;
}

.card{
  border:3px solid var(--line);
  border-radius:var(--radius);
  background:var(--panel);
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}

/* ===== Brand Header ===== */
.brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 24px;
  gap:20px;
}
.brand-left{display:flex;align-items:center;gap:16px}
.logo{
  display:inline-flex;
  align-items:center;
  gap:2px;
  font-weight:800;
  font-size:44px;
  letter-spacing:.5px;
  text-decoration:none;
}
.logo .y{color:#ffd54f}      /* yellow */
.logo .e1{color:#26c6da}     /* cyan */
.logo .e2{color:#42a5f5}     /* blue */
.logo .t{color:#ef5350}      /* red */

.brand-img{ height:56px; width:auto; }

.brand-text .studio{
  margin:0;
  font-size:22px;
  font-weight:800;
}
.brand-text .studio span{font-weight:700;opacity:.9}
.brand-text .tagline{
  margin:4px 0 0;
  font-size:14px;
  color:var(--muted);
}

.brand-right{
  text-align:right;
  min-width:210px;
  border-left:3px solid var(--line);
  padding-left:20px;
}
.brand-right .ver{font-weight:700}
.brand-right .ver strong{color:#ff8a65}
.brand-right .date{font-size:13px;color:var(--muted)}

/* ===== Nav Buttons ===== */
.nav{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  overflow:hidden;
}
.nav .btn{
  display:flex;align-items:center;justify-content:center;
  padding:16px 12px;
  color:var(--ink);
  text-decoration:none;
  font-weight:700;
  letter-spacing:.3px;
  border-right:3px solid var(--line);
  transition:background .2s, color .2s, transform .04s;
}
.nav .btn:last-child{border-right:none}
.nav .btn:hover{background:#333}
.nav .btn:active{transform:translateY(1px)}

/* ===== Hero ===== */
.hero{
  margin-top:18px;
  overflow:hidden;
}
.hero-link{display:block}
.hero img{
  display:block;
  width:100%;
  height:auto;
}

/* ===== Projects ===== */
.projects{margin-top:28px}
.section-title{
  text-align:center;
  font-weight:800;
  font-size:34px;
  margin:6px 0 18px;
}
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--gap);
}
.project{
  overflow:hidden;
}
.project-link{display:block}
.project img{
  display:block;
  width:100%;
  height:auto;
  transition:transform .4s ease;
}
.project:hover img{transform:scale(1.02)}

/* ===== Footer ===== */
.footer{
  margin-top:28px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}
.footer .divider{
  height:2px;
  background:var(--line);
  opacity:.9;
  margin:10px 0 16px;
  border-radius:3px;
}

/* ===== Responsive ===== */
@media (max-width:920px){
  .brand{flex-direction:column;align-items:stretch}
  .brand-right{border-left:none;border-right:none;border-top:3px solid var(--line);padding-left:0;padding-top:12px}

}
@media (max-width:760px){
  .nav{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .section-title{font-size:26px}
  .logo{font-size:38px}
    .nav .btn{border-right:none};
}
