:root{
  --bg: #071826;
  --bg-panel: #0D2233;
  --surface: #12293C;
  --surface-line: rgba(124,158,182,0.16);
  --text: #E9F1F6;
  --text-muted: #7E96A9;
  --red: #A6273D;
  --red-bright: #C6394D;
  --red-dim: rgba(166,39,61,0.16);
  --max-w: 1200px;
}

*{ box-sizing:border-box; margin:0; padding:0; }:root{
  --bg: #071826;
  --bg-panel: #0D2233;
  --surface: #12293C;
  --surface-line: rgba(124,158,182,0.16);
  --text: #E9F1F6;
  --text-muted: #7E96A9;
  --red: #A6273D;
  --red-bright: #C6394D;
  --red-dim: rgba(166,39,61,0.16);
  --max-w: 1200px;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Noto Sans Thai',sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-family:'Fraunces','Noto Sans Thai',serif;
  font-weight:500;
  line-height:1.18;
  letter-spacing:-0.01em;
}

.mono{
  font-family:'JetBrains Mono',monospace;
  font-size:0.82rem;
}

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

.wrap{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 28px;
}

/* ---------- NAV ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(7,24,38,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--surface-line);
}
nav.wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{
  font-family:'Fraunces','Noto Sans Thai',serif;
  font-size:1.15rem;
  font-weight:600;
  display:flex; align-items:center; gap:8px;
}
.brand-dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--red-bright);
  box-shadow:0 0 10px var(--red-bright);
}
.navlinks{ display:flex; gap:32px; }
.navlinks a{
  font-size:0.94rem; color:var(--text-muted);
  transition:color .2s ease;
}
.navlinks a:hover{ color:var(--text); }
.nav-cta{
  padding:9px 18px;
  border:1px solid var(--red);
  border-radius:6px;
  color:var(--text) !important;
  font-size:0.9rem;
  transition:background .2s ease, border-color .2s ease;
}
.nav-cta:hover{ background:var(--red-dim); }
.menu-btn{ display:none; background:none; border:none; color:var(--text); font-size:1.6rem; cursor:pointer; }

/* ---------- HERO ---------- */
.hero{
  padding:96px 0 88px;
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:20px;
  align-items:center;
}
.hero-eyebrow{
  color:var(--text-muted);
  font-size:0.98rem;
  margin-bottom:18px;
}
.hero h1{
  font-size:clamp(2.1rem, 4.4vw, 3.4rem);
  max-width:none;
}
.hero h1 .accent{ color:var(--red-bright); }
.hero p.lead{
  margin-top:22px;
  max-width:58ch;
  color:var(--text-muted);
  font-size:1.06rem;
}
.hero-actions{
  margin-top:34px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.btn{
  display:inline-block;
  padding:13px 26px;
  border-radius:6px;
  font-size:0.96rem;
  font-weight:500;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn-primary{
  background:var(--red);
  color:#fff;
}
.btn-primary:hover{ background:var(--red-bright); transform:translateY(-1px); }
.btn-ghost{
  border:1px solid var(--surface-line);
  color:var(--text);
}
.btn-ghost:hover{ border-color:var(--text-muted); }

.hero-diagram{
  position:relative;
  justify-self:start;
  width:100%;
  opacity:0;
  transform:translateY(10px);
  animation:rise .8s ease .15s forwards;
}
@keyframes rise{ to{ opacity:1; transform:translateY(0); } }
.hero-diagram svg, .hero-diagram img{ width:100%; height:auto; display:block; border-radius:8px; }
.node-label{
  font-family:'JetBrains Mono',monospace;
  font-size:12.5px;
  fill:var(--text-muted);
}
.node-label.center{ fill:var(--text); font-size:13.5px; }

/* ---------- SECTION SHARED ---------- */
section{ padding:84px 0; border-top:1px solid var(--surface-line); }
.section-head{ max-width:56ch; margin-bottom:44px; padding-top:20px; }
.section-head h2{ font-size:clamp(1.6rem,3vw,2.15rem); }
.section-head p{ margin-top:14px; color:var(--text-muted); }

/* ---------- ABOUT ---------- */
.about-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:56px;
  align-items:start;
}
.about-grid p{ color:var(--text-muted); margin-bottom:16px; max-width:58ch; }
.stat-block{
  border-left:2px solid var(--red);
  padding-left:20px;
}
.stat-block + .stat-block{ margin-top:28px; }
.stat-num{
  font-family:'Fraunces','Noto Sans Thai',serif;
  font-size:1.3rem;
  font-weight:600;
  color:var(--text);
}
.stat-desc{ color:var(--text-muted); font-size:0.92rem; margin-top:4px; }

/* ---------- SERVICES ---------- */
.services{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.service-card{
  background:var(--surface);
  border:1px solid var(--surface-line);
  border-radius:10px;
  padding:32px;
  transition:border-color .2s ease;
}
.service-card:hover{ border-color:rgba(166,39,61,0.55); }
.service-card h3{ font-size:1.3rem; margin-bottom:12px; }
.service-card p{ color:var(--text-muted); font-size:0.96rem; margin-bottom:20px; }
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-family:'JetBrains Mono',monospace;
  font-size:0.76rem;
  padding:5px 10px;
  border-radius:5px;
  background:rgba(124,158,182,0.1);
  color:var(--text-muted);
}

/* ---------- PORTFOLIO ---------- */
.work-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.work-card{
  border:1px solid var(--surface-line);
  border-radius:10px;
  overflow:hidden;
  background:var(--bg-panel);
}
.work-thumb{
  height:260px;
  background:
    linear-gradient(135deg, rgba(166,39,61,0.22), rgba(18,41,60,0.4)),
    repeating-linear-gradient(45deg, rgba(124,158,182,0.06) 0 2px, transparent 2px 14px);
  border-bottom:1px solid var(--surface-line);
  display:flex;
  justify-content:center;
  align-items:flex-start;
  overflow:hidden;
}
.work-thumb img{
  width:50%;
  height:100%;
  object-fit:contain;
  object-position:top center;
  display:block;
  margin:0 auto;
}
.work-thumb img.img-large{
  width:85%;
}
.work-thumb img.img-full{
  width:100%;
}
.work-body{ padding:22px; }
.work-body h3{ font-size:1.08rem; font-weight:500; margin-bottom:8px; }
.work-body p{ color:var(--text-muted); font-size:0.9rem; margin-bottom:14px; }
.work-note{
  color:var(--text-muted);
  font-size:0.78rem;
  font-style:italic;
  margin-top:10px;
}

/* ---------- CONTACT ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.contact-card{
  background:var(--surface);
  border:1px solid var(--surface-line);
  border-radius:10px;
  padding:30px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:border-color .2s ease, transform .15s ease;
}
.contact-card:hover{ border-color:rgba(166,39,61,0.55); transform:translateY(-2px); }
.contact-label{ color:var(--text-muted); font-size:0.85rem; }
.contact-value{ font-size:1.15rem; font-weight:500; word-break:break-word; }
.contact-value.mono{ font-size:1.05rem; }

footer{
  border-top:1px solid var(--surface-line);
  padding:32px 0;
}
footer .wrap{
  display:flex; justify-content:space-between; align-items:center;
  color:var(--text-muted);
  font-size:0.85rem;
  flex-wrap:wrap;
  gap:10px;
}

@media (max-width:860px){
  .navlinks{ display:none; }
  .hero{ grid-template-columns:1fr; padding-top:56px; }
  .hero-diagram{ order:-1; max-width:340px; margin:0 auto; }
  .about-grid{ grid-template-columns:1fr; }
  .services{ grid-template-columns:1fr; }
  .work-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  section{ padding:60px 0; }
}

@media (prefers-reduced-motion: reduce){
  .hero-diagram{ animation:none; opacity:1; transform:none; }
  *{ transition:none !important; }
}

html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Noto Sans Thai',sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-family:'Noto Sans Thai',sans-serif;
  font-weight:600;
  line-height:1.18;
  letter-spacing:-0.01em;
}

.mono{
  font-family:'Noto Sans Thai',sans-serif;
  font-size:0.82rem;
}

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

.wrap{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 28px;
}

/* ---------- NAV ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(3, 104, 33, 0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(3, 104, 33, 0.92);
}
nav.wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{
  font-family:'Noto Sans Thai',sans-serif;
  font-size:1.15rem;
  font-weight:700;
  display:flex; align-items:center; gap:8px;
}
.brand-dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--red-bright);
  box-shadow:0 0 10px var(--red-bright);
}
.navlinks{ display:flex; gap:32px; }
.navlinks a{
  font-size:0.94rem; color:var(--text-muted);
  transition:color .2s ease;
}
.navlinks a:hover{ color:var(--text); }
.nav-cta{
  padding:9px 18px;
  border:1px solid #FFEA00;
  border-radius:6px;
  color:var(--text) !important;
  font-size:0.9rem;
  transition:background .2s ease, border-color .2s ease;
}
.nav-cta:hover{ background:rgba(255, 234, 0, 0.18); border-color:#FFF176; }
.menu-btn{ display:none; background:none; border:none; color:var(--text); font-size:1.6rem; cursor:pointer; }

/* ---------- HERO ---------- */
.hero{
  padding:96px 0 88px;
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:20px;
  align-items:center;
}
.hero-eyebrow{
  color:var(--text-muted);
  font-size:0.98rem;
  margin-bottom:18px;
}
.hero h1{
  font-size:clamp(2.1rem, 4.4vw, 3.4rem);
  max-width:none;
}
.hero h1 .accent{ color:var(--red-bright); }
.hero p.lead{
  margin-top:22px;
  max-width:58ch;
  color:var(--text-muted);
  font-size:1.06rem;
}
.hero-actions{
  margin-top:34px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.btn{
  display:inline-block;
  padding:13px 26px;
  border-radius:6px;
  font-size:0.96rem;
  font-weight:500;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn-primary{
  background:var(--red);
  color:#fff;
}
.btn-primary:hover{ background:var(--red-bright); transform:translateY(-1px); }
.btn-ghost{
  border:1px solid var(--surface-line);
  color:var(--text);
}
.btn-ghost:hover{ border-color:var(--text-muted); }

.hero-diagram{
  position:relative;
  justify-self:start;
  width:100%;
  opacity:0;
  transform:translateY(10px);
  animation:rise .8s ease .15s forwards;
}
@keyframes rise{ to{ opacity:1; transform:translateY(0); } }
.hero-diagram svg, .hero-diagram img{ width:100%; height:auto; display:block; border-radius:8px; }
.node-label{
  font-family:'Noto Sans Thai',sans-serif;
  font-size:12.5px;
  fill:var(--text-muted);
}
.node-label.center{ fill:var(--text); font-size:13.5px; }

/* ---------- SECTION SHARED ---------- */
section{ padding:84px 0; border-top:1px solid var(--surface-line); }
.section-head{ max-width:56ch; margin-bottom:44px; padding-top:20px; }
.section-head h2{ font-size:clamp(1.6rem,3vw,2.15rem); }
.section-head p{ margin-top:14px; color:var(--text-muted); }

/* ---------- ABOUT ---------- */
.about-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:56px;
  align-items:start;
}
.about-grid p{ color:var(--text-muted); margin-bottom:16px; max-width:58ch; }
.stat-block{
  border-left:2px solid var(--red);
  padding-left:20px;
}
.stat-block + .stat-block{ margin-top:28px; }
.stat-num{
  font-family:'Noto Sans Thai',sans-serif;
  font-size:1.5rem;
  font-weight:700;
  color:var(--text);
}
.stat-desc{ color:var(--text-muted); font-size:0.92rem; margin-top:4px; }

/* ---------- SERVICES ---------- */
.services{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.service-card{
  background:var(--surface);
  border:1px solid var(--surface-line);
  border-radius:10px;
  padding:32px;
  transition:border-color .2s ease;
}
.service-card:hover{ border-color:rgba(166,39,61,0.55); }
.service-card h3{ font-size:1.3rem; margin-bottom:12px; }
.service-card p{ color:var(--text-muted); font-size:0.96rem; margin-bottom:20px; }
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-family:'Noto Sans Thai',sans-serif;
  font-size:0.76rem;
  padding:5px 10px;
  border-radius:5px;
  background:rgba(124,158,182,0.1);
  color:var(--text-muted);
}

/* ---------- PORTFOLIO ---------- */
.work-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.work-card{
  border:1px solid var(--surface-line);
  border-radius:10px;
  overflow:hidden;
  background:var(--bg-panel);
}
.work-thumb{
  height:260px;
  background:
    linear-gradient(135deg, rgba(166,39,61,0.22), rgba(18,41,60,0.4)),
    repeating-linear-gradient(45deg, rgba(124,158,182,0.06) 0 2px, transparent 2px 14px);
  border-bottom:1px solid var(--surface-line);
  display:flex;
  justify-content:center;
  align-items:flex-start;
  overflow:hidden;
}
.work-thumb img{
  width:50%;
  height:100%;
  object-fit:contain;
  object-position:top center;
  display:block;
  margin:0 auto;
}
.work-thumb img.img-large{
  width:85%;
}
.work-thumb img.img-full{
  width:100%;
}
.work-body{ padding:22px; }
.work-body h3{ font-size:1.08rem; font-weight:500; margin-bottom:8px; }
.work-body p{ color:var(--text-muted); font-size:0.9rem; margin-bottom:14px; }
.work-note{
  color:var(--text-muted);
  font-size:0.78rem;
  font-style:italic;
  margin-top:10px;
}

/* ---------- CONTACT ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.contact-card{
  background:var(--surface);
  border:1px solid var(--surface-line);
  border-radius:10px;
  padding:30px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:border-color .2s ease, transform .15s ease;
}
.contact-card:hover{ border-color:rgba(166,39,61,0.55); transform:translateY(-2px); }
.contact-label{ color:var(--text-muted); font-size:0.85rem; }
.contact-value{ font-size:1.15rem; font-weight:500; word-break:break-word; }
.contact-value.mono{ font-size:1.05rem; }

footer{
  border-top:1px solid var(--surface-line);
  padding:32px 0;
}
footer .wrap{
  display:flex; justify-content:space-between; align-items:center;
  color:var(--text-muted);
  font-size:0.85rem;
  flex-wrap:wrap;
  gap:10px;
}

@media (max-width:860px){
  .navlinks{ display:none; }
  .hero{ grid-template-columns:1fr; padding-top:56px; }
  .hero-diagram{ order:-1; max-width:340px; margin:0 auto; }
  .about-grid{ grid-template-columns:1fr; }
  .services{ grid-template-columns:1fr; }
  .work-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  section{ padding:60px 0; }
}

@media (prefers-reduced-motion: reduce){
  .hero-diagram{ animation:none; opacity:1; transform:none; }
  *{ transition:none !important; }
}
