/* ============ TOKENS ============ */
:root{
  --blue: #006EB6;
  --blue-light: #41B6E6;
  --navy: #1A2332;
  --grey: #75787B;
  --grey-light: #E7EAED;
  --off-white: #F7F8FA;
  --white: #FFFFFF;
  --font-th: 'Sarabun', sans-serif;
  --font-en: 'Century Gothic', 'Poppins', sans-serif;
  --container: 1160px;
  --radius: 4px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-th);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
.container{ max-width: var(--container); margin: 0 auto; padding: 0 32px; }

h1,h2,h3,h4{ font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

/* ============ NAV ============ */
.nav{
  position: sticky; top:0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-light);
}
.nav-inner{
  max-width: var(--container); margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img{ height: 34px; width: auto; }
.nav-links{ display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a{ color: var(--navy); transition: color .2s; white-space: nowrap; }
.nav-links a:hover{ color: var(--blue); }
.nav-lang{
  border: 1px solid var(--grey-light); border-radius: 20px; padding: 4px 12px !important;
  font-size: 13px !important; font-weight: 600 !important;
}
.nav-cta{
  background: var(--blue); color: var(--white); padding: 10px 22px;
  border-radius: 24px; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .2s;
}
.nav-cta:hover{ background: var(--navy); }
.nav-burger{ display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span{ display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ============ BUTTONS ============ */
.btn{
  display: inline-block; padding: 13px 28px; border-radius: 26px;
  font-size: 15px; font-weight: 600; transition: all .2s; border: 2px solid transparent;
}
.btn-primary{ background: var(--blue); color: var(--white); }
.btn-primary:hover{ background: var(--navy); }
.btn-ghost{ border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover{ background: var(--navy); color: var(--white); }
.btn-lg{ padding: 16px 40px; font-size: 16px; }

/* ============ HERO — signature "pathway" element ============ */
.hero{
  position: relative; overflow: hidden;
  padding: 160px 0 120px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
}
.hero-path{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.hero-path svg{ width:100%; height:100%; }
.hero-path path{
  fill:none; stroke: var(--blue-light); stroke-width:2; opacity:.35;
  stroke-dasharray: 6 10; stroke-linecap: round;
}
.hero-inner{ position: relative; z-index:1; max-width: 760px; }
.eyebrow{
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--blue);
  margin-bottom: 18px; text-transform: uppercase;
}
.eyebrow-dark{ color: var(--blue-light); }
.hero h1{
  font-size: clamp(34px, 5.2vw, 56px); color: var(--navy); margin-bottom: 22px;
}
.hero-sub{ font-size: 18px; color: var(--grey); max-width: 620px; margin-bottom: 36px; }
.hero-ctas{ display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ============ HERO VIDEO ============ */
.hero-video{ position: relative; overflow: hidden; padding: 0; min-height: 640px; display: flex; align-items: center; }
.hero-bg-video{
  position: absolute; top: -40px; left: 0; right: 0; bottom: -40px; width: 100%; height: calc(100% + 80px);
  object-fit: cover; z-index: 0;
}
.hero-overlay{
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(6,14,26,0.97) 0%, rgba(6,14,26,0.86) 45%, rgba(6,14,26,0.55) 75%, rgba(6,14,26,0.35) 100%),
    linear-gradient(180deg, rgba(6,14,26,0.55) 0%, rgba(6,14,26,0.1) 30%, rgba(6,14,26,0.1) 70%, rgba(6,14,26,0.4) 100%);
}
.hero-video .hero-inner{ position: relative; z-index: 2; padding: 140px 0; max-width: 720px; }
.eyebrow-onvideo{ color: var(--blue-light); }
.hero-title-onvideo{ color: #fff; }
.hero-sub-onvideo{ color: rgba(255,255,255,0.82); }
.btn-ghost-onvideo{ border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost-onvideo:hover{ background: #fff; color: var(--navy); }

.btn-play{
  background: none; border: none; color: #fff; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 13px 6px;
}
.btn-play-icon{
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; transition: background .2s;
}
.btn-play:hover .btn-play-icon{ background: var(--blue); border-color: var(--blue); }

/* ============ VIDEO MODAL ============ */
.video-modal{
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.video-modal.open{ display: flex; }
.video-modal-backdrop{ position: absolute; inset: 0; background: rgba(6,14,26,0.92); }
.video-modal-inner{
  position: relative; z-index: 1; width: 100%; max-width: 960px;
}
.video-modal-inner video{ width: 100%; border-radius: 8px; display: block; background: #000; }
.video-modal-close{
  position: absolute; top: -44px; right: 0; background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer; padding: 8px;
}

@media (max-width: 680px){
  .hero-video{ min-height: 520px; }
  .hero-video .hero-inner{ padding: 100px 0 60px; }
}

/* ============ PROOF STRIP ============ */
.proof{ background: var(--navy); padding: 40px 0; }
.proof-grid{
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center;
}
.proof-item{ display: flex; flex-direction: column; gap: 4px; }
.proof-num{ font-size: 32px; font-weight: 700; color: var(--white); }
.proof-label{ font-size: 13px; color: rgba(255,255,255,0.6); }

/* ============ SECTIONS ============ */
.section{ padding: 96px 0; }
.section-title{ font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); margin-bottom: 20px; max-width: 640px; }
.section-lead{ font-size: 17px; color: var(--grey); max-width: 640px; margin-bottom: 48px; }

/* PAIN POINTS */
.pain{ background: var(--off-white); }
.pain-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; margin-top: 40px; }
.pain-card{
  background: var(--white); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--grey-light); position: relative;
}
.pain-mark{
  font-size: 13px; font-weight: 700; color: var(--blue-light); display: block; margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.pain-card h3{ font-size: 18px; margin-bottom: 8px; color: var(--navy); }
.pain-card p{ color: var(--grey); font-size: 15px; }

/* BRANDS */
.brands-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; margin-top: 40px; }
.brand-card{
  display: block; padding: 44px 36px; border-radius: 6px; transition: transform .25s;
  border: 1px solid var(--grey-light);
}
.brand-card:hover{ transform: translateY(-4px); }
.brand-chm{ background: var(--white); border-top: 4px solid var(--blue); }
.brand-xaya{ background: var(--navy); color: var(--white); border-top: 4px solid var(--blue-light); }
.brand-tag{
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 18px;
}
.brand-chm .brand-tag{ background: #E8F3FA; color: var(--blue); }
.brand-xaya .brand-tag{ background: rgba(65,182,230,0.15); color: var(--blue-light); }
.brand-card h3{ font-size: 26px; margin-bottom: 14px; }
.brand-card p{ font-size: 15px; margin-bottom: 24px; opacity: .85; }
.brand-xaya p{ color: rgba(255,255,255,0.75); }
.brand-link{ font-weight: 700; font-size: 14px; color: var(--blue); }
.brand-xaya .brand-link{ color: var(--blue-light); }

/* SERVICES — card grid (3-up on desktop) */
.services-list{
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 40px;
}
.service-row{
  padding: 30px 26px; border: 1px solid var(--grey-light); border-radius: 6px;
  border-top: 3px solid var(--blue-light);
}
.service-num{ display: block; font-size: 22px; font-weight: 700; color: var(--blue-light); margin-bottom: 14px; }
.service-row h3{ font-size: 18px; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.service-row p{ color: var(--grey); font-size: 14px; }

/* WHY CHAP */
.why{ background: var(--navy); color: var(--white); }
.why .section-title{ color: var(--white); }
.why-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.why-card{
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px;
}
.why-card-highlight{
  background: rgba(65,182,230,0.12); border-color: var(--blue-light);
}
.why-card h3{ font-size: 17px; margin-bottom: 10px; }
.why-card p{ font-size: 14px; color: rgba(255,255,255,0.65); }

/* PORTFOLIO */
.portfolio-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 40px; }
.portfolio-card{
  background: var(--off-white); border-radius: var(--radius); padding: 26px 22px;
  border-top: 3px solid var(--blue);
}
.portfolio-tag{
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: var(--blue); background: #E8F3FA; padding: 3px 10px; border-radius: 14px; margin-bottom: 14px;
}
.portfolio-tag-soon{ color: var(--grey); background: var(--grey-light); }
.portfolio-card h3{ font-size: 16px; margin-bottom: 4px; color: var(--navy); }
.portfolio-card p{ font-size: 13px; color: var(--grey); }

/* FINAL CTA */
.cta-final{
  background: linear-gradient(135deg, var(--blue) 0%, #004E82 100%);
  color: var(--white); padding: 100px 0; text-align: center;
}
.cta-final h2{ font-size: clamp(28px,3.6vw,40px); margin-bottom: 16px; }
.cta-final p{ font-size: 17px; opacity: .9; margin-bottom: 36px; max-width: 520px; margin-left:auto; margin-right:auto; }
.cta-final .btn-primary{ background: var(--white); color: var(--blue); }
.cta-final .btn-primary:hover{ background: var(--navy); color: var(--white); }

/* FOOTER */
.footer{ background: var(--navy); color: rgba(255,255,255,0.7); padding: 70px 0 24px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-logo{ height: 46px; width: auto; margin-bottom: 14px; }
.footer-tagline{ font-style: italic; font-size: 14px; opacity: .6; }
.footer-col h4{ color: var(--white); font-size: 14px; margin-bottom: 16px; letter-spacing: .04em; }
.footer-col a, .footer-col p{ display: block; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover{ color: var(--blue-light); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 13px; opacity: .5;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .proof-grid{ grid-template-columns: repeat(2,1fr); gap: 32px; }
  .pain-grid, .brands-grid{ grid-template-columns: 1fr; }
  .services-list{ grid-template-columns: 1fr 1fr; }
  .why-grid{ grid-template-columns: 1fr 1fr; }
  .portfolio-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 680px){
  .nav-links{
    position: fixed; top: 66px; left:0; right:0; bottom:0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 32px; gap: 20px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s linear .25s;
    overflow-y: auto;
  }
  .nav-links.open{ opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, visibility 0s; }
  .nav-burger{ display: block; }
  .nav-cta{ display: none; }
  .hero{ padding: 120px 0 80px; }
  .services-list, .why-grid, .portfolio-grid{ grid-template-columns: 1fr; }
}

/* ============ MOTION ============ */

/* Nav: shrink on scroll */
.nav{ transition: padding .25s ease, box-shadow .25s ease; }
.nav.is-scrolled .nav-inner{ padding-top: 8px; padding-bottom: 8px; }
.nav.is-scrolled{ box-shadow: 0 2px 16px rgba(26,35,50,0.06); }

/* Scroll-reveal: fade + rise
   Default state is fully visible (progressive enhancement) — JS adds
   .js-reveal-ready to <html> once it has wired up the observers, and only
   THEN do .reveal / .reveal-item start hidden and animate in. This way,
   if JS fails, is blocked, or hasn't run yet, content is never stuck at
   opacity:0. */
.reveal, .reveal-group .reveal-item{
  opacity: 1; transform: none;
}
.js-reveal-ready .reveal{
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.js-reveal-ready .reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* Staggered children inside a revealed group (grids, lists) */
.js-reveal-ready .reveal-group .reveal-item{
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.js-reveal-ready .reveal-group.is-visible .reveal-item{ opacity: 1; transform: translateY(0); }
.reveal-group.is-visible .reveal-item:nth-child(1){ transition-delay: .03s; }
.reveal-group.is-visible .reveal-item:nth-child(2){ transition-delay: .09s; }
.reveal-group.is-visible .reveal-item:nth-child(3){ transition-delay: .15s; }
.reveal-group.is-visible .reveal-item:nth-child(4){ transition-delay: .21s; }
.reveal-group.is-visible .reveal-item:nth-child(5){ transition-delay: .27s; }
.reveal-group.is-visible .reveal-item:nth-child(6){ transition-delay: .33s; }

/* Counting stat numbers (proof strip, track record) */
.count-num{ font-variant-numeric: tabular-nums; }

/* Hover polish: lift + shadow on cards already using transform */
.pain-card, .portfolio-card, .pf-track-card, .why-card{
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pain-card:hover, .portfolio-card:hover{
  transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26,35,50,0.08);
}
.pf-track-card:hover{ transform: translateY(-4px); border-color: rgba(65,182,230,0.4); }
.why-card:hover{ transform: translateY(-4px); border-color: rgba(65,182,230,0.35); }

/* Button micro-interaction */
.btn{ transition: all .2s, transform .15s ease; }
.btn:active{ transform: scale(.97); }

/* Portfolio property image: gentle parallax-ready */
.pf-media-main{ transition: transform .6s ease; }
.pf-property:hover .pf-media-main{ transform: scale(1.025); }

/* Hero media subtle parallax (translateY driven by JS via --parallax-y) */
.hero-bg-video, .pf-hero{ transform: translateY(var(--parallax-y, 0px)); }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-group .reveal-item{
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .pain-card, .portfolio-card, .pf-track-card, .why-card, .pf-media-main, .btn{
    transition: none !important;
  }
  .hero-bg-video, .pf-hero{ transform: none !important; }
}

/* ============ TOOLKIT STRIP ============ */
.toolkit{ background: var(--tint, #EEF6FB); }
.toolkit .section-lead{ margin-bottom: 36px; }
.toolkit-grid{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.toolkit-item{
  background: #fff; border: 1px solid var(--grey-light); border-top: 3px solid var(--blue-light);
  border-radius: 6px; padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 8px;
}
.toolkit-item h3{ font-size: 16px; margin: 0; }
.toolkit-item p{ font-size: 14px; color: var(--grey); margin: 0; flex: 1; }
.toolkit-tag{ font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--blue); }
@media (max-width: 1100px){ .toolkit-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px){ .toolkit-grid{ grid-template-columns: 1fr 1fr; gap: 12px; } .toolkit-item{ padding: 18px 14px 14px; } }
@media (max-width: 420px){ .toolkit-grid{ grid-template-columns: 1fr; } }

/* ============ FOOTER TRUST (DBD) ============ */
.footer-trust{
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 8px; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px;
}
.footer-trust-badge{ flex: 0 0 auto; display: block; background: #fff; border-radius: 6px; padding: 6px 8px; line-height: 0; }
.footer-trust-badge img{ width: 140px; height: auto; display: block; min-width: 60px; min-height: 36px; }
.footer-trust p{ flex: 1 1 320px; margin: 0; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.65); }

/* ============ HERO INFOGRAPHIC (replaces the video) ============ */
.hero-info{
  position: relative; overflow: hidden; padding: 0; min-height: 600px; display: flex; align-items: center;
  background: radial-gradient(ellipse at 78% 40%, rgba(0,110,182,0.28) 0%, rgba(0,110,182,0) 60%), linear-gradient(135deg, #0A1424 0%, #11304F 100%);
}
.hero-info-grid{ display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 140px 24px 90px; width: 100%; }
.hero-info .hero-inner{ max-width: none; padding: 0; }
.hero-diagram svg{ display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; font-family: var(--font-th); }
.hero-diagram .node{ fill: rgba(255,255,255,0.06); stroke: rgba(65,182,230,0.55); stroke-width: 1.5; }
.hero-diagram .node-t{ fill: #fff; font-weight: 700; font-size: 18px; }
.hero-diagram .node-s{ fill: rgba(255,255,255,0.74); font-size: 13px; }
.hero-diagram .hub{ fill: rgba(0,110,182,0.28); stroke: #41B6E6; stroke-width: 1.5; }
.hero-diagram .hub-t{ fill: #fff; font-weight: 700; font-size: 16px; text-anchor: middle; }
.hero-diagram .flow{ fill: none; stroke: #41B6E6; stroke-width: 2.2; stroke-dasharray: 7 8; stroke-linecap: round; animation: hd-flow 1.8s linear infinite; }
.hero-diagram .hd-node{ opacity: 0; animation: hd-in .6s ease forwards; }
.hero-diagram .n2{ animation-delay: .15s; } .hero-diagram .n3{ animation-delay: .3s; } .hero-diagram .n4{ animation-delay: .45s; }
@keyframes hd-flow{ to{ stroke-dashoffset: -30; } }
@keyframes hd-in{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){
  .hero-diagram .flow{ animation: none; }
  .hero-diagram .hd-node{ animation: none; opacity: 1; }
}
@media (max-width: 900px){
  .hero-info{ min-height: 0; }
  .hero-info-grid{ grid-template-columns: 1fr; gap: 28px; padding: 104px 20px 56px; }
  .hero-diagram svg{ max-width: 420px; }
}

/* ============ CMS-DRIVEN: portfolio extras, news, FAQ ============ */
.portfolio-card-img{ display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; margin-bottom: 14px; }
.portfolio-blurb{ margin-top: 8px; }
.portfolio-link{ display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--blue); }
.portfolio-link:hover{ text-decoration: underline; }
.cms-section:not(:has([data-cms-items] > *)){ display: none; }
.cms-section[hidden]{ display: none; }

.news-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.news-card{ background: var(--white); border: 1px solid var(--grey-light); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.news-card img{ display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-body{ padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body time{ font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--grey); }
.news-body h3{ font-size: 17px; line-height: 1.4; color: var(--navy); }
.news-body p{ font-size: 14px; color: var(--grey); }
.news-link{ margin-top: auto; font-size: 13px; font-weight: 700; color: var(--blue); }
.news-link:hover{ text-decoration: underline; }
.faq{ background: var(--off-white); }
.faq-list{ max-width: 820px; margin-top: 8px; }
.faq-item{ border-bottom: 1px solid var(--grey-light); padding: 4px 0; }
.faq-item summary{ cursor: pointer; font-weight: 600; font-size: 17px; color: var(--navy); padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--blue); }
.faq-item[open] summary::after{ content: '–'; }
.faq-item p{ padding: 0 28px 18px 0; color: var(--grey); font-size: 15px; line-height: 1.75; }
.faq-item summary:focus-visible{ outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 900px){ .news-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .news-grid{ grid-template-columns: 1fr; } }
.hero-info .hero-inner h1{ color:#fff; text-shadow:none; }
.hero-info .hero-sub{ color: rgba(255,255,255,.88); }

/* ============ DISTRIBUTION INFOGRAPHIC ============ */
.dist{ background: var(--off-white); }
.dist-fig{ margin-top: 28px; background:#fff; border:1px solid var(--grey-light); border-radius:10px; padding:20px; }
.dist-fig svg{ display:block; width:100%; height:auto; font-family: var(--font-th); }
.dist-fig .dg-node rect{ fill:#EAF4FB; stroke:#41B6E6; stroke-width:1.5; }
.dist-fig .dg-node .t{ fill:var(--navy); font-weight:700; font-size:15px; text-anchor:middle; }
.dist-fig .dg-node .s{ fill:var(--grey); font-size:12px; text-anchor:middle; }
.dist-fig .core rect{ fill:var(--navy); stroke:var(--navy); } .dist-fig .core .t{ fill:#fff; font-size:17px; } .dist-fig .core .s{ fill:rgba(255,255,255,.78); }
.dist-fig .hub rect{ fill:var(--blue); stroke:var(--blue); }
.dist-fig .direct rect{ fill:var(--blue); stroke:var(--blue); } .dist-fig .direct .t{ fill:#fff; } .dist-fig .direct .s{ fill:rgba(255,255,255,.85); }
.dist-fig .guest rect{ fill:#fff; stroke:var(--blue); stroke-width:2.5; } .dist-fig .guest .t{ font-size:17px; }
.dist-fig .flow{ fill:none; stroke:var(--blue); stroke-width:2; stroke-dasharray:6 7; stroke-linecap:round; animation: hd-flow 1.8s linear infinite; }
.dist-fig .f2{ stroke:#41B6E6; }
.dist-fig .note{ fill:var(--blue); font-size:12.5px; font-weight:600; text-anchor:end; } .dist-fig .note.l{ text-anchor:start; fill:var(--grey); }
@media (max-width:700px){ .dist-fig{ padding:10px; overflow-x:auto; } .dist-fig svg{ min-width:640px; } }
@media (prefers-reduced-motion: reduce){ .dist-fig .flow{ animation:none; } }

/* ============ C.H.A.P. VALUES ============ */
.chap-values{ background:#fff; }
.chap-val-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:12px; }
.chap-val{ position:relative; border:1px solid var(--grey-light); border-radius:8px; padding:26px 22px 24px; overflow:hidden; background:var(--off-white); }
.chap-letter{ display:block; font-size:64px; line-height:1; font-weight:700; color:var(--blue); font-family:var(--font-en, 'Century Gothic', sans-serif); margin-bottom:10px; }
.chap-val h3{ font-size:18px; color:var(--navy); margin:0; }
.chap-val .chap-th{ font-size:14px; font-weight:600; color:var(--blue); margin:2px 0 10px; }
.chap-val p{ font-size:14.5px; color:var(--grey); line-height:1.7; margin:0; }
.chap-val:nth-child(2) .chap-letter{ color:var(--blue-light); }
.chap-val:nth-child(4) .chap-letter{ color:var(--navy); }
@media (max-width:900px){ .chap-val-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .chap-val-grid{ grid-template-columns:1fr; } .chap-letter{ font-size:52px; } }

/* ============ HOTEL MAP ============ */
.cms-map{ margin: 8px 0 28px; }
.cms-map:empty{ display:none; }
.cms-map-frame{ position:relative; max-width:760px; border-radius:10px; overflow:hidden; border:1px solid var(--grey-light); background:#dfe6ee; }
.cms-map-frame img{ display:block; width:100%; height:auto; }
.map-pin{ position:absolute; width:16px; height:16px; margin:-8px 0 0 -8px; border-radius:50%; border:2px solid #fff; box-shadow:0 1px 4px rgba(26,35,50,.35); display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:#fff; font-style:normal; }
.map-pin.map-past{ width:20px; height:20px; margin:-10px 0 0 -10px; }
.map-open{ background:var(--blue); } .map-soon{ background:var(--blue-light); } .map-past{ background:#7d8794; }
.cms-map-legend{ display:flex; flex-wrap:wrap; gap:8px 22px; list-style:none; margin:12px 0 0; padding:0; font-size:13.5px; color:var(--grey); }
.cms-map-legend li{ display:flex; align-items:center; gap:8px; }
.cms-map-legend .map-pin{ position:static; margin:0; width:14px; height:14px; box-shadow:none; }
@media (max-width:560px){ .cms-map-frame .map-pin{ width:11px; height:11px; margin:-5.5px 0 0 -5.5px; border-width:1.5px; font-size:0; } .cms-map-frame .map-pin.map-past{ width:14px; height:14px; margin:-7px 0 0 -7px; font-size:8px; } }

/* ---- fill the empty side areas: map + legend side by side, FAQ heading beside the list ---- */
.cms-map{ display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:32px; align-items:center; }
.cms-map-frame{ max-width:none; }
.cms-map-legend{ display:flex; flex-direction:column; gap:18px; margin:0; font-size:15px; }
.cms-map-legend > li{ display:block; }
.cms-map-key{ display:flex; align-items:center; gap:10px; font-weight:700; color:var(--navy); }
.cms-map-legend ul{ list-style:none; margin:8px 0 0 24px; padding:0; color:var(--grey); }
.cms-map-legend ul li{ padding:2px 0; }
.cms-map-legend p{ margin:8px 0 0 24px; color:var(--grey); font-size:14px; }
@media (max-width:900px){ .cms-map{ grid-template-columns:1fr; gap:18px; } }
@media (min-width:901px){
  .faq .container{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); column-gap:56px; align-content:start; }
  .faq .container > .eyebrow, .faq .container > .section-title{ grid-column:1; }
  .faq .container > .faq-list{ grid-column:2; grid-row:1 / span 3; max-width:none; margin-top:0; }
}

/* photo strip under hero */
.photo-strip{ padding: 28px 0 8px; }
.photo-strip-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap:10px; }
.photo-strip figure{ margin:0; overflow:hidden; border-radius:4px; aspect-ratio: 4/5; }
.photo-strip img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width: 900px){
  .photo-strip-grid{ grid-template-columns: 1fr 1fr; }
  .photo-strip figure{ aspect-ratio: 4/3; }
  .photo-strip .ps-wide{ grid-column: 1 / -1; aspect-ratio: 16/9; }
}

.portfolio-card-img{ height:auto; }
.portfolio-card-ph{ background: #0b2a4a url("logo-white.png") center/42% no-repeat; }
.photo-strip-grid{ grid-auto-rows: 300px; }
.photo-strip figure{ aspect-ratio: auto; height:100%; }
@media (max-width: 900px){
  .photo-strip-grid{ grid-auto-rows: 150px; }
  .photo-strip figure:nth-child(4){ display:none; }
  .photo-strip .ps-wide{ aspect-ratio:auto; grid-column:1 / -1; }
}

.map-pin.map-open,.map-pin.map-soon{ z-index:3; }
.map-pin.map-past{ z-index:1; }

/* ---- layout fill fixes (no orphan cells) ---- */
.photo-strip-grid{ grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
@media (max-width:900px){
  .photo-strip-grid{ grid-template-columns: 1fr 1fr; }
  .photo-strip figure:nth-child(4){ display:block; }
  .photo-strip .ps-wide{ grid-column:1 / -1; }
}
@media (min-width:1001px){ .services-list{ grid-template-columns: repeat(4,1fr); } }
@media (max-width:1000px) and (min-width:681px){ .services-list{ grid-template-columns: 1fr 1fr; } }
@media (min-width:1101px){ .toolkit-grid{ grid-template-columns: repeat(5,1fr); } }
@media (max-width:1100px) and (min-width:681px){
  .toolkit-grid{ grid-template-columns: repeat(6,1fr); }
  .toolkit-grid .toolkit-item{ grid-column: span 2; }
  .toolkit-grid .toolkit-item:nth-child(n+4){ grid-column: span 3; }
}
@media (max-width:680px){ .toolkit-grid .toolkit-item:last-child{ grid-column:1 / -1; } }
@media (max-width:420px){ .toolkit-grid .toolkit-item:last-child{ grid-column:auto; } }
@media (max-width:900px) and (min-width:601px){
  .pain-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child{ grid-column: 1 / -1; }
}
@media (max-width:600px){ .pain-grid{ grid-template-columns: 1fr; } }

/* ---- chat menu (LINE / WhatsApp) ---- */
.nav-chat{ position:relative; }
.nav-chat > summary{ list-style:none; cursor:pointer; }
.nav-chat > summary::-webkit-details-marker{ display:none; }
.nav-chat-menu{ position:absolute; right:0; top:calc(100% + 8px); min-width:170px; background:#fff; border:1px solid var(--grey-light); border-radius:8px; box-shadow:0 10px 28px rgba(26,35,50,.14); padding:6px; z-index:120; }
.nav-chat-menu a{ display:block; padding:10px 14px; border-radius:6px; font-size:14px; font-weight:600; color:var(--navy); }
.nav-chat-menu a:hover{ background:var(--off-white); color:var(--blue); }
.nav-chat > summary:focus-visible{ outline:3px solid var(--blue-light); outline-offset:2px; }
.nav-chat-m{ display:none; }
@media (max-width:680px){ .nav-chat{ display:none; } .nav-chat-m{ display:block; } }
.cta-buttons{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.cta-final .btn-ghost{ border-color:rgba(255,255,255,.7); color:#fff; }
.cta-final .btn-ghost:hover{ background:#fff; color:var(--blue); }
/* mobile menu: backdrop-filter made the fixed menu size to the nav bar */
@media (max-width:680px){ .nav{ -webkit-backdrop-filter:none; backdrop-filter:none; background:#fff; } }

.inline-link{ display:inline-block; margin-left:4px; font-weight:700; color:var(--blue); white-space:nowrap; }
.inline-link:hover{ text-decoration:underline; }
.why .inline-link, .why-card .inline-link{ color:var(--blue-light); }

/* ---- inner pages (brands / services / why / faq / portfolio) ---- */
.brand-details-grid{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.brand-detail{ background:#fff; border:1px solid rgba(26,35,50,.1); border-radius:14px; padding:34px 30px; display:flex; flex-direction:column; align-items:flex-start; }
.brand-detail .brand-tag{ display:inline-block; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--blue); margin-bottom:10px; }
.brand-detail h2{ font-size:clamp(26px,3vw,34px); margin:0 0 6px; color:var(--navy); }
.brand-detail h3{ font-size:15px; margin:18px 0 8px; color:var(--navy); }
.brand-tagline{ font-weight:600; color:var(--blue); margin:0 0 14px; }
.bestfit{ list-style:none; padding:0; margin:0 0 24px; }
.bestfit li{ position:relative; padding:0 0 8px 24px; }
.bestfit li::before{ content:"✓"; position:absolute; left:0; top:0; color:var(--blue); font-weight:700; }
.brand-detail .btn{ margin-top:auto; }
.svc-tagline{ font-weight:600; color:var(--blue); margin:0 0 6px; }
.service-row-full p{ max-width:760px; }
.svc-more{ margin-top:48px; padding:30px; border-radius:14px; background:rgba(65,182,230,.08); }
.svc-more h2{ font-size:22px; margin:0 0 10px; color:var(--navy); }
.faq-page{ max-width:860px; }
.faq-group{ font-size:22px; color:var(--navy); margin:40px 0 14px; }
.faq-group:first-child{ margin-top:0; }
@media (max-width:860px){ .brand-details-grid{ grid-template-columns:1fr; } .brand-detail{ padding:26px 22px; } }
