
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root{
  --ink:#171321;
  --muted:#716b7d;
  --bg:#fbf9ff;
  --paper:#fff;
  --lav:#f0eaff;
  --lav2:#e4d7ff;
  --purple:#6d3cf2;
  --purple2:#8a5cff;
  --yellow:#ffd95a;
  --blue:#5f82ff;
  --line:#e9e3f2;
  --shadow:0 24px 70px rgba(60,37,98,.12);
  --radius:26px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
#contact{scroll-margin-top:90px}
body{
  margin:0;
  font-family:"IBM Plex Sans Thai","Tahoma",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 10% 0%,rgba(135,92,255,.12),transparent 34%),
    radial-gradient(circle at 95% 8%,rgba(255,217,90,.15),transparent 28%),
    var(--bg);
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
.container{width:min(1180px,calc(100% - 36px));margin:auto}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid var(--line);background:rgba(255,255,255,.8);
  border-radius:999px;padding:8px 13px;font-size:13px;font-weight:700;color:#5e5570
}
.dot{width:8px;height:8px;border-radius:50%;background:var(--yellow)}
.header{
  position:sticky;top:0;z-index:50;
  padding:12px 0;
  background:linear-gradient(180deg,rgba(249,247,255,.94),rgba(249,247,255,.78));
  backdrop-filter:blur(18px);
  border-bottom:0
}
.nav{
  height:82px;display:flex;align-items:center;justify-content:space-between;gap:22px;
  position:relative;padding:0 20px;border-radius:24px;
  background:rgba(255,255,255,.94);border:1px solid rgba(225,220,242,.82);
  box-shadow:0 12px 36px rgba(50,42,84,.08)
}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0;line-height:1}
.brand-lockup{min-width:260px}
.brand-emblem{position:relative;width:62px;height:58px;display:inline-block;flex:0 0 62px}
.brand-emblem:before{
  content:"";position:absolute;left:3px;top:1px;width:48px;height:49px;
  border:2px solid #17386f;border-right-color:transparent;border-bottom-color:transparent;
  border-radius:50%;transform:rotate(-15deg)
}
.brand-emblem:after{
  content:"✦";position:absolute;right:2px;top:-4px;color:#17386f;font-size:15px;line-height:1
}
.brand-r{
  position:absolute;left:12px;top:3px;z-index:2;color:#17386f;
  font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:58px;line-height:.92;letter-spacing:-5px
}
.brand-swoosh{
  position:absolute;left:14px;bottom:1px;width:47px;height:18px;
  border-bottom:4px solid #17386f;border-radius:0 0 70% 80%;transform:rotate(7deg)
}
.brand-copy{display:flex;flex-direction:column;gap:4px;white-space:nowrap}
.brand-copy strong{
  color:#17386f;font-family:Georgia,"Times New Roman",serif;font-size:28px;line-height:.9;
  letter-spacing:-1.2px;font-weight:700
}
.brand-copy small{
  color:#17386f;font-family:Manrope,"IBM Plex Sans Thai",sans-serif;font-size:9px;line-height:1;
  text-transform:uppercase;letter-spacing:2.2px;font-weight:700
}
.navlinks{display:flex;align-items:center;gap:6px}
.navlinks a{padding:10px 13px;border-radius:12px;font-weight:700;font-size:14px;color:#24395f}
.navlinks a:hover{background:#f5f2ff;color:#6d3cf2}
.navcta{display:flex;gap:10px;align-items:center}
.navcta .btn-soft{border-color:#cfc8ea;background:rgba(255,255,255,.72);color:#17386f}
.navcta .btn-primary{background:linear-gradient(135deg,#17386f,#264fa4);box-shadow:0 12px 26px rgba(23,56,111,.20)}
.contact-menu-wrap{position:relative}
.contact-toggle{min-width:92px}
.contact-menu{
  position:absolute;right:0;top:calc(100% + 10px);width:230px;padding:8px;
  background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);
  opacity:0;visibility:hidden;transform:translateY(-6px) scale(.98);transform-origin:top right;
  transition:.18s ease;z-index:80
}
.contact-menu.open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.contact-option{
  display:flex;align-items:center;gap:12px;padding:12px;border-radius:13px;color:var(--ink);transition:.18s
}
.contact-option:hover{background:#f7f4ff}
.contact-option-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:19px;flex:0 0 auto}
.line-option .contact-option-icon{background:#ecfff2}
.phone-option .contact-option-icon{background:#eef4ff}
.contact-option strong{display:block;font-size:14px}
.contact-option small{display:block;margin-top:2px;color:var(--muted);font-size:12px;font-weight:600}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:46px;padding:0 18px;border-radius:14px;border:1px solid transparent;
  font-weight:700;cursor:pointer;transition:.2s
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{color:#fff;background:linear-gradient(135deg,var(--purple),var(--purple2));box-shadow:0 13px 28px rgba(109,60,242,.24)}
.btn-soft{background:#fff;border-color:var(--line);color:var(--ink)}
.menu-btn{display:none;border:0;background:#fff;border-radius:12px;width:44px;height:44px}
.hero{padding:72px 0 56px;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:50px;align-items:center}
.hero h1{
  font-family:"IBM Plex Sans Thai",Manrope,sans-serif;
  font-size:clamp(44px,6vw,78px);
  line-height:1;
  letter-spacing:-2px;
  margin:18px 0 22px;
}
.hero-title .hero-line{
  display:block;
  line-height:1.22;
  min-height:1.22em;
}
.hero-title .hero-line + .hero-line{
  margin-top:.03em;
}
.highlight{
  position:relative;
  display:inline-block;
  z-index:1;
  padding:0 .03em .04em;
}
.highlight:after{
  content:"";
  position:absolute;
  left:-.03em;right:-.04em;bottom:.08em;
  height:.23em;
  background:var(--yellow);
  z-index:-1;
  transform:rotate(-1.2deg);
  border-radius:3px;
}
.hero p{font-size:18px;line-height:1.8;color:#5d5767;max-width:650px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}

/* Hero CTA hover animation — compact ring only, no spill over nearby content */
.hero-actions .btn{
  position:relative;
  overflow:visible;
  transition:transform .22s ease,box-shadow .22s ease,background .22s ease,color .22s ease,border-color .22s ease;
}
.hero-actions .btn:hover{transform:scale(1.015)}
.hero-actions .btn:active{transform:scale(.99)}
.hero-actions .btn-primary:hover{
  box-shadow:0 0 0 3px rgba(111,72,255,.18),0 7px 16px rgba(109,60,242,.20);
}
.hero-actions .btn-soft:hover{
  background:#fff;
  border-color:#8d6cf5;
  color:#5f3dd3;
  box-shadow:0 0 0 3px rgba(116,84,220,.11),0 7px 15px rgba(80,60,130,.12);
}
.mini-points{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px;color:#554f61;font-size:13px;font-weight:600}
.mini-points span{display:flex;align-items:center;gap:7px}
.tick{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#e9fff0;color:#179447;font-size:12px}
.hero-art{position:relative;min-height:600px}
.art-card{position:absolute;border-radius:24px;overflow:hidden;box-shadow:var(--shadow);border:6px solid #fff;background:#fff}
.art-card img{width:100%;height:100%;object-fit:cover}
.art-main{width:66%;height:470px;right:5%;top:32px;transform:rotate(2deg)}
.art-side{width:42%;height:310px;left:0;bottom:25px;transform:rotate(-4deg)}
.float-note{
  position:absolute;z-index:4;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);
  border-radius:18px;padding:14px 16px;font-weight:700;font-size:14px
}
.note-a{left:7%;top:22px}
.note-b{right:0;bottom:42px;background:var(--yellow);border-color:transparent}
.section{padding:88px 0}
.section.alt{background:#fff;border-block:1px solid var(--line)}
.section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:34px}
.section-head h2{font-family:Manrope,"IBM Plex Sans Thai";font-size:clamp(34px,4vw,52px);letter-spacing:-1.8px;margin:10px 0 0;line-height:1.1}
.section-head p{max-width:520px;color:var(--muted);line-height:1.75;margin:0}
.problem-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.problem-card{
  background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:20px;min-height:190px;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease
}
.problem-icon{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;margin-bottom:18px;
  color:var(--purple);background:linear-gradient(135deg,#f2edff,#fff7d8);
  border:1px solid rgba(109,60,242,.10);box-shadow:0 8px 20px rgba(109,60,242,.08);
  transition:transform .25s ease,box-shadow .25s ease
}
.problem-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.problem-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:rgba(109,60,242,.18)}
.problem-card:hover .problem-icon{transform:scale(1.06) rotate(-2deg);box-shadow:0 10px 24px rgba(109,60,242,.14)}
.problem-card h3{font-size:18px;margin:0 0 8px;line-height:1.35}
.problem-card p{font-size:13px;color:var(--muted);line-height:1.65;margin:0}
.services{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.service-card{
  position:relative;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;
  display:grid;grid-template-columns:1fr 180px;gap:20px;overflow:hidden;min-height:310px;
  box-shadow:0 8px 24px rgba(43,32,77,.035);
}
.service-card::before{
  content:"";position:absolute;left:28px;right:28px;top:0;height:3px;border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,var(--purple),#9d75ff,var(--yellow));
  transform:scaleX(0);transform-origin:center;transition:transform .32s ease;
}
.service-card.dark{background:#19151f;color:#fff;border-color:#19151f}
.service-card.soft{background:var(--lav)}
.service-card h3{font-size:28px;margin:10px 0 8px;line-height:1.15;transition:color .28s ease}
.service-card p{color:var(--muted);line-height:1.7;margin:0}
.service-card.dark p{color:#c9c3d3}
.service-card ul{padding:0;margin:18px 0 0;list-style:none;display:grid;gap:8px;font-size:14px}
.service-card li:before{content:"✓";color:var(--purple);font-weight:900;margin-right:8px}
.service-card.dark li:before{color:var(--yellow)}
.service-media{align-self:end;height:230px;border-radius:20px;overflow:hidden;transform:rotate(2deg);box-shadow:0 16px 40px rgba(0,0,0,.12)}
.service-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}

@media (hover:hover) and (pointer:fine){
  .service-card:hover::before{transform:scaleX(1)}
  .service-card:hover h3{color:var(--purple)}
  .service-card.dark:hover h3{color:var(--yellow)}
  .service-card:hover .service-media img{transform:scale(1.035)}
}

@media (prefers-reduced-motion:reduce){
  .service-card::before,.service-card h3,.service-media img{transition:none!important}
}
.why-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:22px}
.why-visual{border-radius:30px;overflow:hidden;min-height:0;aspect-ratio:703/545;background:var(--lav);position:relative}
.why-visual img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.why-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.why-card{
  background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;min-height:180px;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease
}
.why-card strong{
  font-size:18px;display:block;margin:10px 0 6px;
  transition:color .25s ease,transform .25s ease
}
.why-card p{font-size:13px;color:var(--muted);line-height:1.65;margin:0}
.iconbox{
  width:44px;height:44px;border-radius:14px;background:var(--lav);display:grid;place-items:center;font-size:22px;
  border:1px solid rgba(109,60,242,.08);box-shadow:0 7px 18px rgba(109,60,242,.07);
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease
}

@media (hover:hover) and (pointer:fine){
  .why-card:hover{
    transform:translateY(-4px);
    border-color:rgba(109,60,242,.20);
    box-shadow:0 16px 34px rgba(60,42,112,.12)
  }
  .why-card:hover strong{
    color:var(--purple);
    transform:translateX(3px)
  }
  .why-card:hover .iconbox{
    transform:translateY(-2px) scale(1.07) rotate(-3deg);
    background:linear-gradient(135deg,#f2edff,#fff8dc);
    box-shadow:0 10px 24px rgba(109,60,242,.14)
  }
}

@media (prefers-reduced-motion:reduce){
  .why-card,.why-card strong,.why-card .iconbox{transition:none!important}
  .why-card:hover,.why-card:hover strong,.why-card:hover .iconbox{transform:none!important}
}
.portfolio-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.filter-btn{
  border:1px solid var(--line);background:#fff;color:#5d5668;padding:9px 14px;border-radius:999px;font-weight:700;cursor:pointer
}
.filter-btn.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.portfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.work-card{
  background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;transition:.25s
}
.work-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.work-image{aspect-ratio:1/1;overflow:hidden;background:#eee}
.work-image img{width:100%;height:100%;object-fit:cover;transition:.35s}
.work-card:hover img{transform:scale(1.025)}
.work-meta{padding:17px 18px 20px}
.work-meta small{color:var(--purple);font-weight:800}
.work-meta h3{margin:6px 0 8px;font-size:20px}
.work-meta p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.work-link{display:inline-flex;margin-top:13px;font-weight:800;color:var(--ink);font-size:14px}
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.price-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:28px;position:relative}
.price-card.featured{border:2px solid var(--purple);box-shadow:var(--shadow)}
.badge{position:absolute;right:18px;top:18px;background:var(--yellow);border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}
.price-card h3{font-size:22px;margin:0 0 6px}
.price-card .sub{font-size:13px;color:var(--muted);min-height:42px}
.price{font-family:Manrope;font-size:48px;font-weight:800;letter-spacing:-2px;margin:18px 0}
.price span{font-family:"IBM Plex Sans Thai";font-size:14px;color:var(--muted);font-weight:600;letter-spacing:0}
.price-list{list-style:none;padding:0;margin:0 0 22px;display:grid;gap:10px;font-size:14px}
.price-list li{display:flex;gap:8px}
.price-list li:before{content:"✓";color:#16a05b;font-weight:900}
.terms{
  margin-top:18px;padding:18px 20px;border-radius:20px;background:#f8f5ff;border:1px solid var(--line);
  color:#5f586b;font-size:13px;line-height:1.8
}
.process{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.step{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px}
.step .circle{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:#fff;font-family:Manrope;font-weight:800}
.step h3{font-size:17px;margin:16px 0 6px}
.step p{font-size:13px;color:var(--muted);line-height:1.6;margin:0}
.faq{display:grid;gap:10px}
.faq-item{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.faq-q{width:100%;padding:18px 20px;border:0;background:#fff;display:flex;justify-content:space-between;gap:20px;font-weight:700;text-align:left;cursor:pointer;color:var(--ink)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease}
.faq-a div{padding:0 20px 18px;color:var(--muted);line-height:1.8;font-size:14px}
.faq-item.open .faq-a{max-height:220px}
.faq-item.open .plus{transform:rotate(45deg)}
.plus{font-size:22px;transition:.25s}
.cta{
  border-radius:34px;background:linear-gradient(135deg,#1c1722,#342344 65%,#6d3cf2);
  color:#fff;padding:52px;display:grid;grid-template-columns:1.2fr .8fr;gap:30px;align-items:center;overflow:hidden;position:relative
}
.cta:after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;background:rgba(255,255,255,.08);right:-90px;top:-100px}
.cta .eyebrow{display:flex;width:max-content;margin-bottom:18px}
.cta h2{font-family:Manrope,"IBM Plex Sans Thai";font-size:clamp(35px,5vw,60px);line-height:1.08;margin:0 0 14px;letter-spacing:-2px}
.cta p{color:#d8d0e4;line-height:1.8;margin:0}
.contact-card{background:#fff;color:var(--ink);border-radius:22px;padding:22px;position:relative;z-index:2}
.contact-title{font-size:18px;margin:0 0 8px;font-weight:800}
.contact-row{padding:10px 0;border-bottom:1px solid var(--line)}
.contact-row:last-child{border-bottom:0}
.contact-row small{color:var(--muted);display:block}
.contact-row strong{display:block;margin-top:2px}
.contact-row a{color:inherit;text-decoration:none;transition:.2s}
.contact-row a:hover{color:var(--purple)}
.footer{padding:34px 0 46px;color:#77717f;font-size:13px}
.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.reveal{opacity:0;transform:translateY(18px);transition:.6s ease}
.reveal.visible{opacity:1;transform:none}

/* portfolio demo pages */
.demo-bg{background:#eef0f4}
.demo-topbar{height:62px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.1);position:sticky;top:0;z-index:30}
.demo-topbar .container{height:100%;display:flex;align-items:center;justify-content:space-between}
.demo-label{font-weight:800;color:#4d4658}
.demo-shell{width:min(1180px,calc(100% - 32px));margin:18px auto 70px;display:grid;grid-template-columns:minmax(0,760px) 330px;gap:18px}
.page-card,.side-card,.post{background:#fff;border-radius:14px;box-shadow:0 1px 3px rgba(0,0,0,.12);overflow:hidden}
.cover{height:280px;position:relative;background:#ddd}
.cover img{width:100%;height:100%;object-fit:cover}
.page-head{padding:0 22px 18px}
.avatar-demo{
  width:124px;height:124px;border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--blue));
  border:5px solid #fff;margin-top:-62px;position:relative;display:grid;place-items:center;color:#fff;font:800 48px Manrope
}
.page-info{display:flex;justify-content:space-between;gap:15px;align-items:end}
.page-info h1{margin:12px 0 3px;font-size:28px}
.page-info p{margin:0;color:#737078}
.preview-note{margin-top:10px;background:#fff7cf;border:1px solid #f1df7d;border-radius:10px;padding:9px 12px;font-size:12px;color:#62571f}
.demo-actions{display:flex;gap:8px;flex-wrap:wrap}
.post{margin-top:14px}
.post-head{display:flex;gap:10px;align-items:center;padding:14px 16px}
.post-avatar{width:42px;height:42px;border-radius:50%;background:#ece8ff;display:grid;place-items:center;color:var(--purple);font-weight:800}
.post-head small{display:block;color:#777}
.post img{width:100%;max-height:760px;object-fit:cover}
.post-copy{padding:0 16px 12px;line-height:1.65;font-size:14px}
.reactions{padding:10px 16px;color:#737078;font-size:13px;border-top:1px solid #eee}
.side-card{padding:18px;margin-bottom:14px}
.side-card h3{margin:0 0 10px}
.side-card p,.side-card li{color:#6f6b74;font-size:13px;line-height:1.7}
.side-card ul{padding-left:18px}
.back-link{color:var(--purple);font-weight:800}
.demo-topbar .brand-lockup{min-width:0;gap:8px}
.demo-topbar .brand-emblem{width:42px;height:40px;flex-basis:42px}
.demo-topbar .brand-emblem:before{left:2px;top:2px;width:34px;height:34px}
.demo-topbar .brand-r{left:8px;top:4px;font-size:39px;letter-spacing:-4px}
.demo-topbar .brand-swoosh{left:10px;bottom:1px;width:33px;height:12px;border-bottom-width:3px}
.demo-topbar .brand-emblem:after{right:0;top:0;font-size:10px}
.demo-topbar .brand-copy{gap:2px}
.demo-topbar .brand-copy strong{font-size:19px}
.demo-topbar .brand-copy small{font-size:7px;letter-spacing:1.2px}

@media(max-width:980px){
  .navlinks{display:none}
  .menu-btn{display:block}
  .navlinks.mobile-open{
    display:flex;position:absolute;top:calc(100% + 8px);left:0;right:0;flex-direction:column;align-items:stretch;
    background:#fff;border:1px solid var(--line);border-radius:18px;padding:10px;box-shadow:var(--shadow)
  }
  .hero-grid,.why-grid,.cta{grid-template-columns:1fr}
  .hero-art{min-height:520px}
  .problem-grid{grid-template-columns:repeat(2,1fr)}
  .services{grid-template-columns:1fr}
  .service-card{grid-template-columns:1fr 180px}
  .portfolio-grid,.pricing-grid{grid-template-columns:repeat(2,1fr)}
  .process{grid-template-columns:repeat(2,1fr)}
  .demo-shell{grid-template-columns:1fr}
  .demo-side{display:none}
}
@media(max-width:680px){
  .container{width:min(100% - 26px,1180px)}
  .header{padding:8px 0}
  .nav{height:68px;padding:0 12px;border-radius:18px;gap:8px}
  .brand-lockup{min-width:0;gap:8px}
  .brand-emblem{width:44px;height:42px;flex-basis:44px}
  .brand-emblem:before{left:2px;top:2px;width:36px;height:36px}
  .brand-r{left:9px;top:4px;font-size:42px;letter-spacing:-4px}
  .brand-swoosh{left:10px;bottom:1px;width:36px;height:13px;border-bottom-width:3px}
  .brand-emblem:after{right:0;top:0;font-size:11px}
  .brand-copy{gap:2px}
  .brand-copy strong{font-size:20px;letter-spacing:-.6px}
  .brand-copy small{font-size:7px;letter-spacing:1.15px}
  .navcta{gap:6px}
  .navcta .btn-soft{display:none}
  .contact-toggle{min-width:76px;padding:0 13px}
  .contact-menu{position:fixed;left:13px;right:13px;top:84px;width:auto;transform-origin:top center}
  .hero{padding-top:48px}
  .hero h1{font-size:44px;line-height:1;letter-spacing:-1.5px}
  .hero-title .hero-line{line-height:1.24;min-height:1.24em}
  .hero p{font-size:16px}
  .hero-art{min-height:420px;margin-top:10px}
  .art-main{width:70%;height:330px}
  .art-side{width:46%;height:230px}
  .note-a{left:0}
  .note-b{bottom:15px}
  .section{padding:64px 0}
  .section-head{display:block}
  .section-head p{margin-top:16px}
  .problem-grid,.why-cards,.portfolio-grid,.pricing-grid,.process{grid-template-columns:1fr}
  .service-card{grid-template-columns:1fr;padding:22px}
  .service-media{height:210px}
  .cta{padding:30px}
  .page-info{display:block}
  .demo-actions{margin-top:14px}
  .cover{height:210px}
}


/* ===== Hero redesign: approved social-page showcase ===== */
.hero-art-new{
  min-height:560px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.hero-showcase{
  width:min(100%,720px);
  border-radius:34px;
  overflow:hidden;
  filter:drop-shadow(0 30px 55px rgba(59,38,102,.14));
  transform:translateY(4px);
}
.hero-showcase img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}
@media(max-width:980px){
  .hero-art-new{min-height:auto;margin-top:22px}
  .hero-showcase{width:min(100%,760px)}
}
@media(max-width:680px){
  .hero-art-new{min-height:auto;margin-top:16px}
  .hero-showcase{border-radius:24px;filter:drop-shadow(0 20px 36px rgba(59,38,102,.12))}
}

/* ===== Approved hero: desktop matches the selected visual exactly ===== */
.hero-approved-layout{
  padding:0;
  min-height:0;
  background:linear-gradient(105deg,#f4f0ff 0%,#fbf8ff 48%,#fff8ef 100%);
  overflow:hidden;
}
.hero-reference-desktop{
  position:relative;
  width:100%;
  max-width:1672px;
  margin:0 auto;
  line-height:0;
}
.hero-reference-desktop img{
  display:block;
  width:100%;
  height:auto;
}
/* Real desktop CTA buttons layered over the cleaned hero artwork */
.hero-desktop-actions{
  position:absolute;
  left:6.8%;
  top:76.4%;
  width:32%;
  height:8.4%;
  display:flex;
  align-items:stretch;
  gap:2.5%;
  z-index:8;
  line-height:normal;
}
.hero-real-btn{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.45em;
  height:100%;
  border-radius:14px;
  font-family:"IBM Plex Sans Thai",Tahoma,sans-serif;
  font-weight:700;
  font-size:clamp(14px,1.25vw,21px);
  white-space:nowrap;
  overflow:hidden;
  isolation:isolate;
  transition:box-shadow .22s ease,border-color .22s ease,color .22s ease,background .22s ease;
}
.hero-real-btn-primary{
  width:48.7%;
  color:#fff;
  background:linear-gradient(100deg,#5b28f4 0%,#6f39f5 50%,#9b5bf3 100%);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 9px 20px rgba(96,53,218,.20);
}
.hero-real-btn-secondary{
  width:48.7%;
  color:#243276;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(221,213,245,.95);
  box-shadow:0 8px 18px rgba(46,40,78,.08);
}
.hero-real-btn-arrow{font-size:1.25em;line-height:1;transition:transform .22s ease}
.hero-real-btn::before{
  content:"";
  position:absolute;
  top:-2px;bottom:-2px;left:-2px;right:-2px;
  border-radius:17px;
  border:2px solid transparent;
  pointer-events:none;
  opacity:0;
  z-index:-1;
  transition:left .24s ease,right .24s ease,opacity .18s ease,border-color .18s ease,box-shadow .22s ease;
}
.hero-real-btn::after{
  content:"";
  position:absolute;
  top:0;bottom:0;left:-75%;width:48%;
  border-radius:14px;
  pointer-events:none;
  opacity:0;
  background:linear-gradient(110deg,transparent 0%,rgba(255,255,255,.12) 20%,rgba(255,255,255,.62) 50%,rgba(255,255,255,.12) 80%,transparent 100%);
  clip-path:inset(0 round 14px);
}
.hero-real-btn:hover::before{
  left:-10px;right:-10px;opacity:1;
}
.hero-real-btn-primary:hover::before{
  border-color:rgba(129,86,255,.62);
  box-shadow:0 8px 18px rgba(92,57,210,.16),0 0 0 2px rgba(108,67,255,.08);
}
.hero-real-btn-secondary:hover::before{
  border-color:rgba(116,84,220,.42);
  box-shadow:0 8px 16px rgba(62,47,102,.11),0 0 0 2px rgba(102,79,170,.07);
}
.hero-real-btn:hover::after{opacity:1;animation:heroRealButtonShine .72s ease forwards}
.hero-real-btn-primary:hover .hero-real-btn-arrow{transform:translateX(4px)}
.hero-real-btn:active::before{left:-6px;right:-6px}
.hero-real-btn:focus-visible{outline:3px solid rgba(109,60,242,.42);outline-offset:4px}
@keyframes heroRealButtonShine{
  0%{left:-75%;opacity:0}
  18%{opacity:1}
  100%{left:128%;opacity:0}
}
.hero-mobile-semantic{display:none}

@media(max-width:900px){
  .hero-reference-desktop{display:none}
  .hero-mobile-semantic{display:block}
  .hero-approved-layout{
    padding:46px 0 56px;
    min-height:auto;
    background:
      radial-gradient(circle at 16% 8%,rgba(141,106,255,.12),transparent 32%),
      radial-gradient(circle at 88% 24%,rgba(255,231,205,.33),transparent 34%),
      linear-gradient(105deg,#f4f0ff 0%,#fbf8ff 45%,#fff8ef 100%);
  }
}




/* Pricing: focused hover treatment — border + package title only */
.price-card{
  isolation:isolate;
  transition:border-color .24s ease,box-shadow .24s ease;
}
.price-card::after{
  content:"";
  position:absolute;
  inset:-2px;
  border:2px solid transparent;
  border-radius:27px;
  pointer-events:none;
  opacity:0;
  transition:opacity .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.price-card h3{
  position:relative;
  z-index:1;
  transition:color .22s ease,transform .22s ease;
}
.price-card:hover::after,
.price-card:focus-within::after{
  opacity:1;
  border-color:rgba(109,60,242,.72);
  box-shadow:0 0 0 4px rgba(109,60,242,.07),0 14px 30px rgba(83,54,150,.10);
}
.price-card:hover h3,
.price-card:focus-within h3{
  color:var(--purple);
  transform:translateX(4px);
}
.price-card.featured:hover::after,
.price-card.featured:focus-within::after{
  border-color:rgba(109,60,242,.92);
  box-shadow:0 0 0 4px rgba(109,60,242,.10),0 16px 34px rgba(83,54,150,.13);
}

@media (prefers-reduced-motion:reduce){
  .price-card,.price-card::after,.price-card h3{transition:none!important}
  .price-card:hover h3,.price-card:focus-within h3{transform:none}
}

/* Pricing: default highlight stays on the main package, but yields to another hovered/focused package */
.pricing-grid:has(.price-card:not(.featured):hover) .price-card.featured,
.pricing-grid:has(.price-card:not(.featured):focus-within) .price-card.featured{
  border-color:var(--line);
  box-shadow:none;
}
.pricing-grid:has(.price-card:not(.featured):hover) .price-card.featured::after,
.pricing-grid:has(.price-card:not(.featured):focus-within) .price-card.featured::after{
  opacity:0;
  border-color:transparent;
  box-shadow:none;
}

/* Portfolio — real client profile + cover pairs */
.portfolio-real-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.portfolio-brand-card{position:relative;overflow:hidden;padding-bottom:0;isolation:isolate}
.portfolio-visual{position:relative}
.portfolio-cover{aspect-ratio:1.91/1;overflow:hidden;border-radius:24px 24px 0 0;background:#eef0f4}
.portfolio-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.portfolio-brand-card:hover .portfolio-cover img{transform:scale(1.025)}
.portfolio-brand-card .portfolio-profile{
  position:absolute;left:18px;bottom:-41px;width:82px;height:82px;border-radius:20px;padding:4px;
  background:#fff;box-shadow:0 10px 28px rgba(27,24,42,.18);z-index:3
}
.portfolio-profile img{width:100%;height:100%;object-fit:cover;border-radius:16px;display:block}
.portfolio-brand-card .work-meta{margin:0;padding:54px 18px 20px}
.portfolio-brand-card .work-meta small{
  display:inline-flex;align-items:center;min-height:26px;padding:5px 9px;border-radius:999px;
  background:#f5f0ff;color:var(--purple);font-size:11px;letter-spacing:.02em
}
.portfolio-brand-card .work-meta h3{margin-top:9px}
.portfolio-assets{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.portfolio-assets span{
  display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#f7f8fb;
  border:1px solid var(--line);font-size:11px;font-weight:800;color:#4e4658
}
.portfolio-toolbar .filter-btn{transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease,border-color .2s ease}
.portfolio-toolbar .filter-btn:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(31,27,47,.10)}
.portfolio-toolbar .filter-btn.active{box-shadow:0 8px 18px rgba(31,27,47,.14)}
@media (max-width:980px){.portfolio-real-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .portfolio-real-grid{grid-template-columns:1fr}
  .portfolio-cover{aspect-ratio:1.91/1}
  .portfolio-brand-card .portfolio-profile{width:74px;height:74px;bottom:-37px;border-radius:18px}
  .portfolio-profile img{border-radius:14px}
  .portfolio-brand-card .work-meta{padding:50px 18px 20px}
}


/* Portfolio cards use the original static presentation; the whole card is clickable. */
.portfolio-brand-card{color:inherit;text-decoration:none;display:block;cursor:pointer}
.portfolio-brand-card:focus-visible{outline:3px solid rgba(109,60,242,.35);outline-offset:4px}

/* ===== Client social-page portfolio mockups ===== */
.client-mockup-bg{background:#eef1f5;color:#1f1b28}
.client-preview-topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid #e2e5eb}
.client-preview-nav{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.client-preview-topbar .brand-lockup{min-width:0;gap:8px}
.client-preview-topbar .brand-emblem{width:42px;height:40px;flex-basis:42px}
.client-preview-topbar .brand-emblem:before{left:2px;top:2px;width:34px;height:34px}
.client-preview-topbar .brand-r{left:8px;top:4px;font-size:39px;letter-spacing:-4px}
.client-preview-topbar .brand-swoosh{left:10px;bottom:1px;width:33px;height:12px;border-bottom-width:3px}
.client-preview-topbar .brand-emblem:after{right:0;top:0;font-size:10px}
.client-preview-topbar .brand-copy{gap:2px}
.client-preview-topbar .brand-copy strong{font-size:19px}
.client-preview-topbar .brand-copy small{font-size:7px;letter-spacing:1.2px}
.client-back{color:var(--purple);font-weight:800;text-decoration:none;font-size:14px}
.client-mockup-shell{width:min(1120px,calc(100% - 28px));margin:18px auto 70px}
.client-page-hero{background:#fff;border:1px solid #e1e4ea;border-radius:20px;overflow:hidden;box-shadow:0 8px 24px rgba(32,36,47,.06)}
.client-cover-wrap{position:relative;aspect-ratio:1.91/1;background:#dfe3e8;overflow:hidden}
.client-cover-img{width:100%;height:100%;object-fit:cover;display:block}
.client-mockup-badge{position:absolute;left:16px;top:16px;padding:7px 11px;border-radius:999px;background:rgba(18,23,35,.76);color:#fff;font-size:10px;font-weight:900;letter-spacing:.12em;backdrop-filter:blur(8px)}
.client-page-head{position:relative;display:flex;align-items:flex-end;gap:18px;padding:0 24px 16px;min-height:118px}
.client-profile-img{width:142px;height:142px;object-fit:cover;border-radius:50%;border:6px solid #fff;background:#fff;box-shadow:0 8px 24px rgba(21,25,34,.14);margin-top:-48px;position:relative;z-index:2}
.client-page-title{flex:1;padding:16px 0 4px;min-width:0}
.client-page-title h1{font-size:30px;line-height:1.12;margin:0 0 5px;letter-spacing:-.6px}
.client-page-title p{margin:0;color:#656a74;font-size:14px}
.client-page-stats{display:flex;gap:7px;align-items:center;color:#8b8f98;font-size:12px;margin-top:8px}
.client-page-actions{display:flex;gap:8px;padding-bottom:8px;flex-wrap:wrap;justify-content:flex-end}
.client-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border-radius:10px;background:#eef0f4;color:#292d36;font-weight:800;text-decoration:none;font-size:13px}
.client-action.primary{background:var(--purple);color:#fff}
.client-page-tabs{display:flex;gap:4px;padding:0 20px;border-top:1px solid #eef0f4;overflow:auto}
.client-page-tabs span{padding:14px 14px 12px;color:#686d77;font-size:13px;font-weight:750;white-space:nowrap;border-bottom:3px solid transparent}
.client-page-tabs span.active{color:var(--purple);border-bottom-color:var(--purple)}
.client-disclaimer{margin:0 20px 18px;padding:10px 13px;border-radius:10px;background:#fff8d9;border:1px solid #f1df87;color:#62561d;font-size:11px;line-height:1.6}
.client-feed-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;margin-top:18px;align-items:start}
.client-feed{display:grid;gap:16px}
.client-post{background:#fff;border:1px solid #e2e5ea;border-radius:16px;overflow:hidden;box-shadow:0 3px 12px rgba(36,39,48,.045)}
.client-post-head{display:flex;align-items:center;gap:10px;padding:14px 16px}
.client-post-head img{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#f2f3f5}
.client-post-head strong{font-size:14px;display:block}
.client-post-head small{display:block;color:#868a93;font-size:11px;margin-top:1px}
.client-post-more{margin-left:auto;color:#7e828b;font-weight:900;letter-spacing:1px}
.client-post-copy{margin:0;padding:0 16px 14px;color:#40444d;line-height:1.7;font-size:13px}
.client-post-media{background:#e9ecf1;display:grid;place-items:center;overflow:hidden;border-top:1px solid #f0f1f4;border-bottom:1px solid #f0f1f4}
.client-post-media img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.client-post-media-cover{aspect-ratio:1.91/1}
.client-post-media-profile{aspect-ratio:1.45/1;padding:26px;background:linear-gradient(135deg,#f4f5f8,#e7eaf0)}
.client-post-media-profile img{width:min(72%,520px);height:100%;object-fit:contain;border-radius:12px;box-shadow:0 10px 30px rgba(24,28,36,.10)}
.client-post-meta{display:flex;justify-content:space-between;gap:12px;padding:10px 16px;color:#7b7f88;font-size:11px;border-bottom:1px solid #eceef2}
.client-post-actions-row{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;padding:5px 9px;color:#5e626a;font-size:12px;font-weight:700}
.client-post-actions-row span{padding:7px 3px;border-radius:7px}
.client-post-actions-row span:hover{background:#f3f4f6}
.client-sidebar{display:grid;gap:14px;position:sticky;top:84px}
.client-side-card{background:#fff;border:1px solid #e2e5ea;border-radius:16px;padding:17px;box-shadow:0 3px 12px rgba(36,39,48,.04)}
.client-side-card h2{font-size:16px;margin:0 0 10px}
.client-side-card p{margin:0;color:#656a73;font-size:12px;line-height:1.7}
.client-info-list{display:grid;gap:9px;margin:14px 0 0}
.client-info-list div{display:flex;justify-content:space-between;gap:14px;padding-top:9px;border-top:1px solid #eef0f3}
.client-info-list dt{font-size:11px;color:#8a8e96}
.client-info-list dd{font-size:11px;font-weight:800;margin:0;text-align:right}
.client-mini-gallery{display:grid;grid-template-columns:1.45fr .75fr;gap:8px}
.client-mini-gallery a{border-radius:10px;overflow:hidden;border:1px solid #e5e7eb;display:block;background:#f5f6f8}
.client-mini-gallery img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:1/1}
.client-mini-gallery a:first-child img{object-fit:cover}
.client-cta-card{background:linear-gradient(140deg,#21172f,#55309e);color:#fff;border:0}
.client-cta-card span{font-size:11px;color:#d9d0eb;font-weight:700}
.client-cta-card h2{font-size:20px;line-height:1.3;margin:7px 0 14px}
.client-cta-card .btn{width:100%;background:#fff;color:#4f2b99;border-color:#fff}
@media(max-width:860px){
  .client-feed-layout{grid-template-columns:1fr}
  .client-sidebar{position:static;grid-template-columns:1fr 1fr}
  .client-cta-card{grid-column:1/-1}
}
@media(max-width:680px){
  .client-preview-nav{min-height:60px}
  .client-back{font-size:12px}
  .client-mockup-shell{width:min(100% - 18px,1120px);margin-top:10px}
  .client-cover-wrap{aspect-ratio:1.91/1}
  .client-page-head{display:grid;grid-template-columns:86px 1fr;padding:0 14px 14px;gap:10px;min-height:0}
  .client-profile-img{width:86px;height:86px;border-width:4px;margin-top:-26px}
  .client-page-title{padding:10px 0 0}
  .client-page-title h1{font-size:21px}
  .client-page-actions{grid-column:1/-1;padding:0;justify-content:stretch}
  .client-action{flex:1}
  .client-page-tabs{padding:0 8px}
  .client-page-tabs span{padding-left:10px;padding-right:10px}
  .client-disclaimer{margin:0 12px 12px}
  .client-post-media-profile{aspect-ratio:1/1;padding:18px}
  .client-post-media-profile img{width:88%}
  .client-post-meta{font-size:10px}
  .client-sidebar{grid-template-columns:1fr}
  .client-cta-card{grid-column:auto}
}


.client-content-note{
  margin:10px 22px 0;
  padding:11px 14px;
  border-radius:12px;
  background:#f8f6ff;
  color:#5b5870;
  border:1px solid #e9e3ff;
  font-size:13px;
  line-height:1.65;
}
.client-feed-empty{
  padding:34px 28px;
  background:#fff;
  border:1px solid #e9e9f1;
  border-radius:18px;
  box-shadow:0 10px 32px rgba(32,32,56,.06);
  text-align:center;
}
.client-feed-empty h2{margin:0 0 8px;color:#17224d;font-size:20px}
.client-feed-empty p{margin:0;color:#6d6a7f;line-height:1.75}
.client-post-media img{display:block;width:100%;height:auto}
@media (max-width:720px){.client-content-note{margin:10px 12px 0}.client-feed-empty{padding:24px 18px}}

/* =========================================================
   Responsive pass — phone / tablet / laptop / desktop
   Keeps approved desktop design while preventing overflow.
   ========================================================= */
html,body{max-width:100%;overflow-x:hidden}
body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,svg,video{max-width:100%}
button,a{-webkit-tap-highlight-color:transparent}

/* Fluid spacing and safer wrapping */
.section-head>*{min-width:0}
.service-card>*,.why-grid>*,.cta>*,.client-page-head>*,.client-feed-layout>*{min-width:0}
.work-meta h3,.service-card h3,.section-head h2,.client-page-title h1,.contact-row strong,
.client-post-copy,.client-side-card,.price-card,.step{overflow-wrap:anywhere;word-break:normal}

/* Large laptop: tighten header before switching to mobile nav */
@media (max-width:1180px){
  .container{width:min(100% - 32px,1120px)}
  .nav{gap:14px;padding-inline:16px}
  .brand-lockup{min-width:220px}
  .brand-emblem{width:54px;height:52px;flex-basis:54px}
  .brand-emblem:before{width:44px;height:44px}
  .brand-r{font-size:51px;left:11px}
  .brand-swoosh{width:42px}
  .brand-copy strong{font-size:25px}
  .navlinks a{padding:9px 9px;font-size:13px}
  .navcta{gap:8px}
  .btn{padding-inline:15px}
  .problem-grid{grid-template-columns:repeat(3,1fr)}
}

/* Tablet landscape / small laptop */
@media (max-width:980px){
  .hero-reference-desktop{display:none}
  .hero-mobile-semantic{display:block}
  .container{width:min(100% - 30px,920px)}
  .header{padding:9px 0}
  .nav{height:72px;border-radius:20px}
  .navlinks.mobile-open{max-height:calc(100vh - 100px);overflow-y:auto;z-index:90}
  .navlinks.mobile-open a{min-height:44px;display:flex;align-items:center;padding:10px 14px}

  .hero-approved-layout{padding:38px 0 50px}
  .hero-grid{gap:28px}
  .hero h1{font-size:clamp(46px,8vw,68px)}
  .hero p{max-width:760px}
  .mini-points{margin-top:22px}

  .section{padding:74px 0}
  .section-head{align-items:start}
  .section-head h2{font-size:clamp(36px,5.5vw,48px)}
  .section-head p{max-width:480px}
  .problem-grid{grid-template-columns:repeat(2,1fr)}
  .problem-card{min-height:170px}
  .service-card{grid-template-columns:minmax(0,1fr) 190px}
  .service-media{height:220px}
  .why-grid{gap:18px}
  .why-visual{width:100%}
  .pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .price-card.featured{order:-1}
  .process{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cta{gap:22px}

  .demo-shell{width:min(100% - 28px,900px)}
}

/* Portrait tablet: switch major content to one-column earlier */
@media (max-width:820px){
  .section-head{display:block;margin-bottom:28px}
  .section-head p{max-width:none;margin-top:14px}
  .services{grid-template-columns:1fr}
  .service-card{grid-template-columns:minmax(0,1fr) 180px}
  .why-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pricing-grid{grid-template-columns:1fr}
  .price-card.featured{order:0}
  .cta{grid-template-columns:1fr;padding:38px}
  .footer-inner{align-items:flex-start}

  .client-feed-layout{grid-template-columns:1fr}
  .client-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  .client-cta-card{grid-column:1/-1}
}

/* Phones */
@media (max-width:680px){
  .container{width:min(100% - 24px,640px)}
  .header{padding:7px 0}
  .nav{height:64px;padding-inline:10px;border-radius:17px}
  .brand-lockup{gap:7px}
  .brand-emblem{width:42px;height:40px;flex-basis:42px}
  .brand-emblem:before{width:34px;height:34px;left:2px;top:2px}
  .brand-r{font-size:39px;left:8px;top:4px}
  .brand-swoosh{width:34px;height:12px;left:9px}
  .brand-copy strong{font-size:19px}
  .brand-copy small{font-size:6.5px;letter-spacing:1px}
  .navcta{gap:5px}
  .contact-toggle{min-width:70px;min-height:42px;padding-inline:11px}
  .menu-btn{width:42px;height:42px;flex:0 0 42px}
  .contact-menu{left:12px;right:12px;top:78px}

  .hero-approved-layout{padding:30px 0 42px}
  .hero-grid{gap:18px}
  .hero h1{font-size:clamp(38px,11vw,48px);letter-spacing:-1.2px;margin:14px 0 16px}
  .hero p{font-size:15px;line-height:1.72}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:20px}
  .hero-actions .btn{width:100%;min-height:48px}
  .mini-points{display:grid;grid-template-columns:1fr;gap:9px;margin-top:20px}
  .hero-showcase{border-radius:20px}

  .section{padding:56px 0}
  .eyebrow{font-size:11px;padding:7px 10px}
  .section-head{margin-bottom:24px}
  .section-head h2{font-size:clamp(30px,9.5vw,39px);letter-spacing:-1.1px;line-height:1.12}
  .section-head p{font-size:14px;line-height:1.7}
  .problem-grid{grid-template-columns:1fr}
  .problem-card{min-height:0;padding:18px}
  .services{gap:13px}
  .service-card{grid-template-columns:1fr;padding:20px;min-height:0;gap:16px}
  .service-card h3{font-size:24px}
  .service-media{height:auto;aspect-ratio:16/10;transform:none;border-radius:16px}
  .why-grid{gap:14px}
  .why-visual{border-radius:22px}
  .why-cards{grid-template-columns:1fr}
  .why-card{min-height:0;padding:18px}

  .portfolio-toolbar{
    margin-inline:-12px;padding:0 12px 4px;display:flex;flex-wrap:nowrap;overflow-x:auto;
    scrollbar-width:none;-webkit-overflow-scrolling:touch
  }
  .portfolio-toolbar::-webkit-scrollbar{display:none}
  .filter-btn{white-space:nowrap;flex:0 0 auto;min-height:42px}
  .portfolio-real-grid{grid-template-columns:1fr;gap:14px}
  .portfolio-brand-card{border-radius:21px}
  .portfolio-cover{border-radius:21px 21px 0 0}
  .portfolio-brand-card .work-meta{padding:48px 16px 18px}
  .portfolio-brand-card .work-meta h3{font-size:19px;line-height:1.3}

  .pricing-grid{gap:12px}
  .price-card{padding:22px;border-radius:22px}
  .price{font-size:42px}
  .process{grid-template-columns:1fr}
  .step{padding:18px}
  .cta{padding:26px 20px;border-radius:26px}
  .cta h2{font-size:clamp(34px,10vw,46px);letter-spacing:-1.2px}
  .contact-card{padding:18px}
  .footer{padding:28px 0 36px}
  .footer-inner{display:grid;gap:8px;text-align:center;justify-content:center}

  /* Older portfolio demo pages */
  .demo-topbar{height:auto;min-height:58px}
  .demo-topbar .container{gap:12px;padding-block:7px}
  .back-link{font-size:12px;text-align:right}
  .demo-shell{width:min(100% - 18px,640px);margin-top:10px}
  .cover{height:auto;aspect-ratio:1.91/1}
  .page-head{padding:0 14px 14px}
  .avatar-demo{width:84px;height:84px;margin-top:-38px;font-size:34px}
  .page-info h1{font-size:22px}
  .post-copy{font-size:13px}

  /* Facebook-style portfolio mockups */
  .client-preview-nav{min-height:58px;gap:8px}
  .client-preview-topbar .brand-copy strong{font-size:17px}
  .client-preview-topbar .brand-copy small{font-size:6px;letter-spacing:.9px}
  .client-back{font-size:11px;white-space:nowrap}
  .client-mockup-shell{width:min(100% - 14px,650px);margin:8px auto 50px}
  .client-page-hero{border-radius:15px}
  .client-cover-wrap{aspect-ratio:1.91/1}
  .client-mockup-badge{left:10px;top:10px;font-size:8px;padding:6px 8px}
  .client-page-head{grid-template-columns:78px minmax(0,1fr);padding:0 11px 12px;gap:9px}
  .client-profile-img{width:78px;height:78px;margin-top:-23px}
  .client-page-title{padding-top:8px}
  .client-page-title h1{font-size:19px;line-height:1.2;letter-spacing:-.25px}
  .client-page-title p{font-size:12px}
  .client-page-stats{font-size:10px;flex-wrap:wrap;margin-top:5px}
  .client-page-actions{gap:6px}
  .client-action{min-height:42px;font-size:12px;padding-inline:12px}
  .client-page-tabs{padding-inline:4px;gap:0;scrollbar-width:none}
  .client-page-tabs::-webkit-scrollbar{display:none}
  .client-page-tabs span{font-size:11px;padding:12px 10px 10px}
  .client-disclaimer{font-size:10px;margin:0 9px 9px;padding:9px 10px}
  .client-content-note{font-size:11px;margin:8px 9px 0;padding:9px 10px}
  .client-feed-layout{gap:12px;margin-top:12px}
  .client-feed{gap:12px}
  .client-post{border-radius:13px}
  .client-post-head{padding:12px}
  .client-post-head img{width:40px;height:40px;flex:0 0 40px}
  .client-post-head strong{font-size:13px;line-height:1.3}
  .client-post-head small{font-size:10px}
  .client-post-copy{padding:0 12px 12px;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
  .client-post-meta{padding:9px 12px;font-size:9.5px;flex-wrap:wrap}
  .client-post-actions-row{font-size:10px;padding:4px 5px}
  .client-sidebar{grid-template-columns:1fr;gap:10px}
  .client-side-card{padding:14px;border-radius:13px}
  .client-mini-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Very small phones */
@media (max-width:400px){
  .container{width:min(100% - 18px,382px)}
  .nav{padding-inline:8px}
  .brand-copy{display:none}
  .contact-toggle{min-width:66px;padding-inline:9px;font-size:13px}
  .menu-btn{width:40px;height:40px;flex-basis:40px}
  .hero h1{font-size:36px}
  .section-head h2{font-size:30px}
  .service-card h3{font-size:22px}
  .portfolio-brand-card .portfolio-profile{left:14px;width:68px;height:68px;bottom:-34px}
  .portfolio-brand-card .work-meta{padding-top:44px}
  .price{font-size:38px}
  .cta{padding:22px 16px}
  .cta h2{font-size:34px}

  .client-preview-topbar .brand-copy{display:none}
  .client-preview-topbar .brand-emblem{width:40px;height:38px;flex-basis:40px}
  .client-mockup-shell{width:calc(100% - 10px)}
  .client-page-head{grid-template-columns:70px minmax(0,1fr)}
  .client-profile-img{width:70px;height:70px;margin-top:-21px}
  .client-page-title h1{font-size:17px}
  .client-page-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .client-page-tabs span{padding-inline:8px}
  .client-post-actions-row span{font-size:9px}
}

/* Tiny legacy widths (320px class devices) */
@media (max-width:340px){
  .contact-toggle{display:none}
  .hero h1{font-size:33px}
  .section-head h2{font-size:28px}
  .client-page-title h1{font-size:16px}
  .client-post-meta{display:grid;gap:4px}
}

/* Keep hover-only effects from feeling sticky on touch devices */
@media (hover:none){
  .btn:hover,.problem-card:hover,.service-card:hover,.why-card:hover,.work-card:hover{transform:none}
  .portfolio-brand-card:hover .portfolio-cover img{transform:none}
}


/* ===== Mobile Portfolio: horizontal swipe slider ===== */
.portfolio-swipe-hint{display:none}
@media (max-width:680px){
  #portfolio{overflow:hidden}
  #portfolio .portfolio-swipe-hint{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    margin:-8px 0 10px;
    color:#756f82;
    font-size:11px;
    font-weight:700;
    letter-spacing:.01em;
  }
  #portfolio .portfolio-real-grid{
    display:flex;
    grid-template-columns:none;
    gap:14px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-padding-left:13px;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    margin-inline:-13px;
    padding:2px 13px 16px;
  }
  #portfolio .portfolio-real-grid::-webkit-scrollbar{display:none}
  #portfolio .portfolio-brand-card{
    flex:0 0 min(88vw,345px);
    width:min(88vw,345px);
    scroll-snap-align:start;
    scroll-snap-stop:always;
    margin:0;
  }
  #portfolio .portfolio-brand-card[style*="display: none"]{flex-basis:0}
  #portfolio .portfolio-cover{aspect-ratio:1.91/1}
  #portfolio .portfolio-brand-card .work-meta{min-height:184px}
}
@media (max-width:380px){
  #portfolio .portfolio-brand-card{
    flex-basis:min(86vw,320px);
    width:min(86vw,320px);
  }
}

/* =========================================================
   Final responsive refinement batch — 2026-09-27
   Mobile hero / problem grid / services / why / portfolio /
   workflow timeline / FAQ accordion.
   ========================================================= */

/* HOW WE WORK: Thai typography must never collide on desktop/tablet. */
.workflow-section .section-head h2{
  font-family:"IBM Plex Sans Thai",Tahoma,sans-serif;
  line-height:1.24;
  letter-spacing:-1px;
  padding-bottom:.06em;
}

/* FAQ stays collapsed by default; one item is opened by JS. */
.faq-q{align-items:center}
.faq-q .plus{flex:0 0 auto;line-height:1}
.faq-item.open .faq-a{max-height:420px}

/* Mobile-only hero badges are part of the integrated composition. */
.hero-mobile-float{display:none}

@media (max-width:980px){
  /* OPTION 2 — one shared mobile hero background with layered visual. */
  .hero-approved-layout{
    padding:20px 0 48px;
    background:#fbf9ff;
  }
  .hero-mobile-semantic{display:block}
  .hero-mobile-semantic .hero-grid{
    position:relative;
    grid-template-columns:1fr;
    gap:12px;
    overflow:hidden;
    padding:clamp(24px,5vw,38px) clamp(20px,4.5vw,34px) 0;
    border:1px solid rgba(124,86,219,.12);
    border-radius:32px;
    background:
      radial-gradient(circle at 91% 8%,rgba(147,99,255,.24),transparent 28%),
      radial-gradient(circle at 8% 72%,rgba(255,217,90,.17),transparent 26%),
      linear-gradient(145deg,#f1ebff 0%,#faf7ff 51%,#fff1e5 100%);
    box-shadow:0 20px 55px rgba(76,54,125,.10);
    isolation:isolate;
  }
  .hero-mobile-semantic .hero-grid::before{
    content:"";
    position:absolute;
    width:220px;height:220px;
    right:-100px;top:18%;
    border-radius:44% 56% 63% 37% / 47% 45% 55% 53%;
    background:linear-gradient(145deg,rgba(139,92,246,.22),rgba(218,202,255,.06));
    transform:rotate(18deg);
    z-index:-1;
  }
  .hero-mobile-semantic .hero-grid::after{
    content:"";
    position:absolute;
    width:170px;height:170px;
    left:-92px;bottom:60px;
    border-radius:50%;
    border:1px solid rgba(109,60,242,.13);
    box-shadow:0 0 0 18px rgba(109,60,242,.025),0 0 0 38px rgba(109,60,242,.018);
    z-index:-1;
  }
  .hero-mobile-semantic .hero-grid>div:first-child{position:relative;z-index:3}
  .hero-mobile-semantic .hero-art-new{
    position:relative;
    z-index:2;
    min-height:0;
    margin:18px 0 0;
    display:block;
    overflow:hidden;
  }
  .hero-mobile-semantic .hero-showcase{
    position:relative;
    width:100%;
    margin:0 auto;
    border-radius:26px;
    overflow:hidden;
    transform:none;
    border:1px solid rgba(255,255,255,.78);
    box-shadow:0 22px 46px rgba(62,39,107,.15);
    filter:none;
    line-height:0;
    background:#fff;
  }
  .hero-mobile-float{
    display:none !important;
  }
  .hero-mobile-float strong{font-family:Manrope,"IBM Plex Sans Thai",sans-serif;font-size:10px;letter-spacing:.02em}
  .hero-mobile-float small{font-size:9px;color:#746b83;font-weight:700}
  .hero-mobile-float-top{right:2%;top:6%;transform:rotate(2deg)}
  .hero-mobile-float-bottom{left:0;bottom:10%;transform:rotate(-2deg)}

  /* Services stays intentionally one column. */
  #services .services{grid-template-columns:1fr}

  /* WHY RAMRUAY: visual first, compact 2x2 benefits below. */
  .why-grid{grid-template-columns:1fr;gap:16px}
  .why-visual{width:100%;aspect-ratio:703/545}
  .why-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .why-card{min-height:0}

  /* Workflow keeps a readable title on tablet too. */
  .workflow-section .section-head h2{line-height:1.25;letter-spacing:-.8px}
}

@media (max-width:680px){
  /* THE PROBLEM: compact two-column grid instead of a long stack. */
  #problem .problem-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  #problem .problem-card{
    min-height:0;
    padding:14px 12px;
    border-radius:18px;
  }
  #problem .problem-card:last-child{grid-column:1/-1}
  #problem .problem-icon{
    width:38px;height:38px;
    margin-bottom:11px;
    border-radius:12px;
  }
  #problem .problem-icon svg{width:20px;height:20px}
  #problem .problem-card h3{font-size:15px;line-height:1.35;margin-bottom:5px}
  #problem .problem-card p{font-size:11.5px;line-height:1.52}

  /* OUR SERVICES remains one easy-to-read card per row. */
  #services .services{grid-template-columns:1fr;gap:13px}

  /* Mobile hero uses the same shared surface from text through artwork. */
  .hero-approved-layout{padding:12px 0 38px}
  .hero-mobile-semantic .hero-grid{
    width:100%;
    padding:22px 16px 0;
    border-radius:27px;
  }
  .hero-mobile-semantic .eyebrow{font-size:9.5px;padding:6px 8px}
  .hero-mobile-semantic .hero-title{font-size:clamp(35px,10.6vw,44px);line-height:1.02;margin:12px 0 14px}
  .hero-mobile-semantic .hero-title .hero-line{line-height:1.2;min-height:1.2em}
  .hero-mobile-semantic p{font-size:14px;line-height:1.68}
  .hero-mobile-semantic .hero-actions{margin-top:17px}
  .hero-mobile-semantic .mini-points{margin-top:17px;gap:7px}
  .hero-mobile-semantic .hero-showcase{
    width:100%;
    border-radius:20px;
    transform:none;
  }
  .hero-mobile-float{display:none !important}

  /* WHY RAMRUAY stays a 2x2 compact grid on phones. */
  .why-grid{gap:12px}
  .why-visual{border-radius:20px}
  .why-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .why-card{padding:13px 11px;border-radius:17px}
  .why-card .iconbox{width:36px;height:36px;border-radius:11px;font-size:18px}
  .why-card strong{font-size:13.5px;line-height:1.35;margin:8px 0 4px}
  .why-card p{font-size:10.8px;line-height:1.48}

  /* PORTFOLIO: compact 2-column grid, no mobile slider. */
  #portfolio{overflow:visible}
  #portfolio .portfolio-swipe-hint{display:none!important}
  #portfolio .portfolio-real-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    overflow:visible;
    margin:0;
    padding:0;
  }
  #portfolio .portfolio-brand-card{
    width:auto;
    min-width:0;
    margin:0;
    border-radius:17px;
    overflow:hidden;
  }
  #portfolio .portfolio-cover{
    aspect-ratio:1.91/1;
    border-radius:17px 17px 0 0;
  }
  #portfolio .portfolio-brand-card .portfolio-profile{
    left:9px;
    bottom:-23px;
    width:46px;
    height:46px;
    padding:2px;
    border-radius:12px;
    box-shadow:0 6px 15px rgba(27,24,42,.16);
  }
  #portfolio .portfolio-profile img{border-radius:9px}
  #portfolio .portfolio-brand-card .work-meta{
    min-height:0;
    padding:29px 10px 11px;
  }
  #portfolio .portfolio-brand-card .work-meta small{
    min-height:0;
    padding:4px 6px;
    font-size:8.5px;
    line-height:1.2;
  }
  #portfolio .portfolio-brand-card .work-meta h3{
    margin:6px 0 0;
    font-size:13.5px;
    line-height:1.3;
    letter-spacing:-.15px;
  }
  #portfolio .portfolio-brand-card .work-meta>p{display:none}
  #portfolio .portfolio-assets{margin-top:7px;gap:4px}
  #portfolio .portfolio-assets span{display:none}
  #portfolio .portfolio-assets span:last-child{
    display:inline-flex;
    padding:4px 6px;
    font-size:8.5px;
    line-height:1.1;
  }

  /* HOW WE WORK: compact vertical timeline, preserves order 1→5. */
  .workflow-section .section-head h2{
    font-size:clamp(30px,9vw,38px);
    line-height:1.25;
    letter-spacing:-.6px;
  }
  .workflow-section .process{
    position:relative;
    display:grid;
    grid-template-columns:1fr;
    gap:0;
    padding-left:0;
  }
  .workflow-section .process::before{
    content:"";
    position:absolute;
    left:18px;
    top:22px;
    bottom:24px;
    width:2px;
    background:linear-gradient(#c9b9ff,#ece5ff);
  }
  .workflow-section .step{
    position:relative;
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    grid-template-areas:"circle title" "circle copy";
    column-gap:12px;
    padding:12px 0;
    border:0;
    border-radius:0;
    background:transparent;
  }
  .workflow-section .step .circle{
    grid-area:circle;
    position:relative;
    z-index:2;
    width:38px;height:38px;
    margin:0;
    box-shadow:0 0 0 5px #fbf9ff;
  }
  .workflow-section .step h3{
    grid-area:title;
    margin:1px 0 2px;
    font-size:16px;
    line-height:1.35;
  }
  .workflow-section .step p{
    grid-area:copy;
    margin:0;
    font-size:12.5px;
    line-height:1.55;
  }

  /* FAQ: compact accordion controls on phone. */
  .faq{gap:8px}
  .faq-item{border-radius:15px}
  .faq-q{padding:15px 14px;gap:12px;font-size:14px;line-height:1.45}
  .faq-a div{padding:0 14px 15px;font-size:12.5px;line-height:1.7}
  .plus{font-size:20px}
}

@media (max-width:380px){
  /* Keep dense mobile grids usable on small iPhones. */
  #problem .problem-grid{gap:7px}
  #problem .problem-card{padding:12px 10px}
  #problem .problem-card h3{font-size:14px}
  #problem .problem-card p{font-size:10.7px}

  .why-cards{gap:7px}
  .why-card{padding:11px 9px}
  .why-card strong{font-size:12.5px}
  .why-card p{font-size:10.2px}

  #portfolio .portfolio-real-grid{gap:8px}
  #portfolio .portfolio-brand-card .work-meta{padding:27px 8px 9px}
  #portfolio .portfolio-brand-card .work-meta h3{font-size:12.5px}
  #portfolio .portfolio-brand-card .work-meta small,
  #portfolio .portfolio-assets span:last-child{font-size:8px}

  .hero-mobile-float-bottom{display:none}
}

@media (prefers-reduced-motion:reduce){
  .faq-a{transition:none!important}
}

.hero-mobile-semantic .hero-showcase img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}

/* ===== Mobile hero image cleanup: keep artwork aligned like desktop ===== */
@media (max-width:680px){
  .hero-mobile-semantic .hero-showcase{
    background:transparent;
    border:0;
    box-shadow:0 18px 36px rgba(62,39,107,.12);
  }
  .hero-mobile-semantic .hero-showcase img{
    width:calc(100% + 18px);
    max-width:none;
    margin-left:-18px;
    height:auto;
    display:block;
  }
}

/* ===== Mobile hero edge cleanup: hide only cropped text fragments, keep 1,880 badge intact ===== */
@media (max-width:680px){
  .hero-mobile-semantic .hero-showcase{
    position:relative;
    overflow:hidden;
    isolation:isolate;
  }
  /* Cover the stray paragraph fragments that leak in from the desktop artwork at the left edge. */
  .hero-mobile-semantic .hero-showcase::before{
    content:"";
    position:absolute;
    z-index:4;
    left:0;
    top:55%;
    width:12%;
    height:15%;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(249,246,246,.99) 0%,rgba(249,246,246,.94) 72%,rgba(249,246,246,0) 100%);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
  }
  /* Hide the remaining cut-off checklist text at the extreme bottom-left only. */
  .hero-mobile-semantic .hero-showcase::after{
    content:"";
    position:absolute;
    z-index:4;
    left:0;
    bottom:0;
    width:24%;
    height:7.5%;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(250,247,246,.99) 0%,rgba(250,247,246,.96) 76%,rgba(250,247,246,0) 100%);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
  }
}
