/* ==========================================================================
   Design tokens — เปลี่ยนสี/ฟอนต์หลักของทั้งเว็บได้ที่นี่
   ========================================================================== */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --fg-2: #333333;
  /* สีประจำบริษัท (ฟ้าเข้ม) — เปลี่ยนรหัสสีที่นี่ที่เดียว */
  --brand: #1d4e89;
  --brand-dark: #153a67;
  --brand-soft: #eaf1fa;
  --muted: #666666;
  --muted-2: #8a8a8a;
  --surface: #fafafa;
  --surface-2: #f2f2f2;
  --line: #dcdcdc;
  --line-soft: #ececec;
  --line-green: #06c755;
  --fab-green: #16c35a;

  --orange: #ea580c; --orange-bg: #fff4ec; --orange-line: #fed7aa;
  --blue: #2563eb;   --blue-bg: #eef4ff;   --blue-line: #bfdbfe;
  --green: #16a34a;  --green-bg: #effbf3;  --green-line: #bbf7d0;
  --purple: #9333ea; --purple-bg: #f7f0ff; --purple-line: #e9d5ff;
  --red: #dc2626;    --red-bg: #fef2f2;
  --yellow: #ca8a04; --yellow-bg: #fefce8;

  --font: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .18);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1200px;
  --gutter: 16px;
  --nav-h: 64px;
}
@media (min-width: 640px) { :root { --gutter: 24px; --nav-h: 72px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --nav-h: 80px; } }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.soft { color: var(--muted-2); }
strong { font-weight: 500; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
section[id], footer[id], article[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.icon { width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }

/* ==========================================================================
   Buttons, chips, badges
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { font-size: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(21, 58, 103, .6); }
.btn-dark:hover { background: var(--brand-dark); }
.btn-light { background: #fff; color: var(--fg); border-color: var(--line); }
.btn-light:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: var(--fg); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn-white:hover { background: #f4f4f4; }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-line { background: var(--line-green); color: #fff; --line-ink: var(--line-green); }
.btn-line:hover { background: #05b34c; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 500; color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.eyebrow.glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.eyebrow .icon { font-size: 14px; }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, .94); color: var(--fg); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--fg-2); background: #fff; }

.chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; background: #fff;
  transition: border-color .2s, transform .2s var(--ease);
}
.chip .icon { font-size: 18px; }
.chip:hover { border-color: var(--brand); transform: translateY(-2px); }

.icon-box {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
}
.icon-box .icon { font-size: 22px; }

.tone-orange { --tone: var(--orange); --tone-bg: var(--orange-bg); --tone-line: var(--orange-line); }
.tone-blue   { --tone: var(--blue);   --tone-bg: var(--blue-bg);   --tone-line: var(--blue-line); }
.tone-green  { --tone: var(--green);  --tone-bg: var(--green-bg);  --tone-line: var(--green-line); }
.tone-purple { --tone: var(--purple); --tone-bg: var(--purple-bg); --tone-line: var(--purple-line); }
.tone-red    { --tone: var(--red);    --tone-bg: var(--red-bg); }
.tone-yellow { --tone: var(--yellow); --tone-bg: var(--yellow-bg); }
.icon-box.tone, [class*="tone-"] > .icon-box.tone { background: var(--tone-bg); color: var(--tone); }

/* ==========================================================================
   Sections & cards
   ========================================================================== */
.section { padding-block: 64px; }
@media (min-width: 1024px) { .section { padding-block: 96px; } }
.section.tight { padding-top: 0; }
.bg-soft { background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.bg-soft-rev { background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }

/* กว้างพอให้หัวข้อและคำโปรยอยู่บรรทัดเดียวบนจอคอม ถ้าจอแคบจนต้องขึ้นบรรทัดใหม่ จะแบ่งบรรทัดให้ยาวใกล้เคียงกัน */
.section-head { text-align: center; max-width: 880px; margin: 0 auto 40px; }
.section-head h2 { margin-top: 14px; font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.lead { color: var(--muted); font-size: 1.02rem; line-height: 1.8; text-wrap: balance; }
.section-head .lead { margin-top: 14px; }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 24px; } }

.checks { display: grid; gap: 8px; margin-top: 16px; }
.checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); }
.checks .icon { margin-top: 4px; font-size: 14px; color: var(--brand); }

.cta-box {
  margin-top: 40px; padding: 40px 24px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fff, var(--surface));
}
.cta-box h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.cta-box p { max-width: 640px; margin: 12px auto 0; color: var(--muted); text-wrap: balance; }
.center-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; text-align: center; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb .icon { font-size: 14px; }
.breadcrumb [aria-current] { color: var(--fg); font-weight: 500; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(34, 34, 34, .1);
  box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .25);
}
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.logo-mark {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 20px;
}
.logo-mark.sm { width: 38px; height: 38px; font-size: 18px; }
.logo-img { height: 48px; width: auto; }
.logo-img.sm { height: 38px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-brand { font-weight: 700; font-size: 18px; letter-spacing: .08em; }
.logo-tag { font-size: 12px; font-weight: 500; color: var(--muted); }
@media (min-width: 1024px) { .logo-mark { width: 44px; height: 44px; } .logo-brand { font-size: 20px; } .logo-img { height: 56px; } }

.nav-links { display: none; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 400; color: var(--fg-2);
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--fg); }
.nav-links a.active { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.nav-links a.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.nav-cta { display: none; }

.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; margin-right: -8px; }
.nav-toggle .icon { font-size: 26px; }
.nav-toggle .i-close, .menu-open .nav-toggle .i-open { display: none; }
.menu-open .nav-toggle .i-close { display: block; }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3);
  padding: 8px var(--gutter) 20px;
  max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 14px 12px; border-radius: 10px; font-size: 17px; font-weight: 400; border-bottom: 1px solid var(--line-soft); }
.mobile-menu nav a.active { background: var(--surface-2); font-weight: 500; border-bottom-color: transparent; }
.mobile-menu-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mobile-menu-cta.single { grid-template-columns: 1fr; }

@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle, .mobile-menu { display: none; }
}

main { display: block; }
.page-top { padding-top: var(--nav-h); }

/* ==========================================================================
   Home hero (slider)
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 40px) 0 110px;
  color: #fff; text-align: center;
  background: #1a1a1a;
}
.hero-slides img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s ease, transform 7s ease-out;
}
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .65) 100%);
}
.hero-content { max-width: 1000px; }
.hero h1 {
  font-size: clamp(2rem, 5.6vw, 4rem); font-weight: 700; line-height: 1.2;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35); text-wrap: balance;
}
.hero .hero-lead { margin: 20px auto 0; max-width: 940px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.hero-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; max-width: 560px; margin: 36px auto 0; }
.hero-stat { display: grid; justify-items: center; gap: 4px; }
.glass-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px;
  border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.glass-icon .icon { font-size: 22px; }
.hero-stat strong { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; line-height: 1; }
.hero-stat .lbl { font-size: 13px; color: rgba(255, 255, 255, .85); }
.hero-actions { display: grid; gap: 12px; margin: 36px auto 0; max-width: 360px; }
@media (min-width: 640px) { .hero-actions { display: flex; justify-content: center; max-width: none; } }

.hero-controls {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .5); transition: width .3s var(--ease), background-color .3s; }
.hero-dots button[aria-current] { width: 26px; background: #fff; }
.hero-controls .sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .35); }
.hero-pause { display: grid; place-items: center; width: 24px; height: 24px; }
.hero-pause .icon { font-size: 16px; }

/* ==========================================================================
   Services
   ========================================================================== */
.service-card h3 { margin-top: 20px; }
.service-card p { margin-top: 8px; font-size: 14px; color: var(--muted); }

.service-full { display: flex; flex-direction: column; border-color: var(--tone-line, var(--line)); }
.service-full:hover { border-color: var(--tone, var(--brand)); }
.service-full h3 { margin-top: 20px; font-size: 1.2rem; }
.service-en { font-size: 13px; font-weight: 500; color: var(--muted-2); }
.service-full > p:not(.service-en) { margin-top: 10px; font-size: 14px; color: var(--muted); }
.service-full h4 { margin-top: 20px; font-size: 14px; font-weight: 600; }
.includes { display: grid; gap: 8px; margin-top: 10px; }
.includes li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-2); }
.includes .icon { color: var(--tone, var(--fg)); font-size: 16px; }
.dots { display: grid; gap: 6px; margin-top: 10px; }
.dots li { position: relative; padding-left: 16px; font-size: 14px; color: var(--muted); }
.dots li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--tone, var(--fg)); }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px; font-size: 14px; font-weight: 500; color: var(--tone, var(--fg)); }
.service-link .icon { transition: transform .2s var(--ease); }
.service-link:hover .icon { transform: translateX(3px); }

/* services page hero */
.split-hero { padding-block: 40px 64px; background: linear-gradient(135deg, #fff 0%, var(--surface-2) 100%); }
.split-hero .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split-hero .container { grid-template-columns: 1.05fr 1fr; gap: 56px; } .split-hero { padding-block: 56px 96px; } }
.split-hero h1 { margin-top: 16px; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.2; }
.split-hero .lead { margin-top: 18px; max-width: 540px; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.mini-stats div { display: grid; }
.mini-stats strong { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.mini-stats span { font-size: 13px; color: var(--muted); }
.split-hero .btn { margin-top: 28px; }
.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.float-badge {
  position: absolute; top: 16px; right: 16px;
  display: grid; justify-items: center; padding: 10px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.float-badge strong { font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.float-badge span { font-size: 12px; color: var(--muted); }

.feature-card h3 { margin-top: 18px; }
.feature-card p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* process */
.process { margin-top: 56px; padding: 40px 20px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; }
@media (min-width: 640px) { .process { padding: 48px 40px; } }
.process .section-head { margin-bottom: 36px; }
.process .section-head h3 { margin-top: 14px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
.steps { display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; } }
.step { text-align: center; }
.step-num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 600;
  transition: background-color .25s, color .25s;
}
.step:hover .step-num { background: var(--brand); border-color: var(--brand); color: #fff; }
.step h4 { margin-top: 14px; font-size: 1.02rem; }
.step p { margin-top: 6px; font-size: 14px; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px 16px; margin-top: 56px; text-align: center; }
.stat-row strong { display: block; font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 700; line-height: 1.1; }
.stat-row span { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.project-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.project-card:hover, .project-card:focus-within { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow); }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-badges { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.project-badges.static { position: static; }
.project-badges.static .badge { background: var(--surface-2); box-shadow: none; }
.project-hover {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .6));
  opacity: 0; transition: opacity .3s;
}
.project-card:hover .project-hover, .project-card:focus-within .project-hover { opacity: 1; }
.pill-view {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--fg);
  font-size: 14px; font-weight: 500; transform: translateY(8px); transition: transform .3s var(--ease);
}
.project-card:hover .pill-view { transform: none; }
.project-hover-meta { position: absolute; left: 16px; bottom: 12px; display: flex; gap: 12px; font-size: 13px; color: #fff; }
.project-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.project-body h3 { font-size: 1.1rem; }
.project-open { text-align: left; font-weight: 600; }
.project-open::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.project-open:focus-visible { outline: none; }
.project-card:has(.project-open:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.project-body > p { font-size: 14px; color: var(--muted); }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.project-meta li { display: inline-flex; align-items: center; gap: 5px; }
.project-meta .icon { font-size: 14px; }
.project-body .tags { margin-top: 4px; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 calc(var(--gutter) * -1) 20px; padding-inline: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .filters { flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; } }
.filter {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 400; transition: all .2s;
}
.filter .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); font-size: 12px; font-weight: 500; }
.filter:hover { border-color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
.filter[aria-pressed="true"] .count { background: rgba(255, 255, 255, .2); }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 48px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty .icon { font-size: 28px; }

/* page hero (portfolio) */
.page-hero { padding-block: 40px 56px; background: linear-gradient(180deg, var(--surface-2) 0%, #fff 100%); }
@media (min-width: 1024px) { .page-hero { padding-block: 56px 80px; } }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
.page-hero .lead { margin-top: 16px; max-width: 880px; }
.page-hero .cta-actions { justify-content: flex-start; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
@media (min-width: 900px) { .stat-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 20px; } }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.stat-card .icon-box { width: 40px; height: 40px; }
.stat-card .icon-box .icon { font-size: 18px; }
.stat-card strong { display: block; margin-top: 14px; font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.stat-card .k { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; }
.stat-card .s { font-size: 12px; color: var(--muted); }

/* project modal */
.modal {
  width: min(980px, calc(100% - 24px)); max-height: calc(100svh - 24px);
  padding: 0; border: 0; border-radius: var(--radius-xl);
  background: #fff; color: var(--fg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-inner { max-height: calc(100svh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow);
}
.modal-close .icon { font-size: 20px; }
.gallery { background: #0f0f0f; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; max-height: 58svh; width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--fg); box-shadow: var(--shadow);
}
.g-nav .icon { font-size: 22px; }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.g-count { position: absolute; left: 12px; bottom: 12px; padding: 2px 10px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 88px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; opacity: .5; outline-offset: 2px; transition: opacity .2s; }
.gallery-thumbs button[aria-current] { opacity: 1; outline: 2px solid #fff; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { display: grid; gap: 24px; padding: 24px; }
@media (min-width: 768px) { .modal-body { grid-template-columns: 1.4fr 1fr; padding: 32px; } }
.modal-head { display: grid; gap: 10px; align-content: start; }
.modal-head h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; }
.modal-desc { color: var(--muted); }
.modal-meta { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-soft); }
.modal-meta li { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; }
.modal-meta .icon { grid-row: span 2; margin-top: 3px; font-size: 18px; }
.modal-meta span { font-size: 12px; color: var(--muted); }
.modal-meta strong { font-weight: 500; }
.modal-cta { grid-column: 1 / -1; }
@media (max-width: 480px) { .modal-cta .btn { width: 100%; } }

/* ==========================================================================
   Clients
   ========================================================================== */
.clients-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 32px; }
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .clients { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.client { display: grid; justify-items: center; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; text-align: center; transition: border-color .25s, transform .3s var(--ease); }
.client:hover { border-color: var(--brand); transform: translateY(-3px); }
.client-logo { display: grid; place-items: center; width: 100%; height: 72px; }
.client-logo img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.client:hover .client-logo img { filter: none; opacity: 1; }
.client-ph { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-2); font-weight: 500; }
.client-ph .icon { font-size: 22px; }
.client h4 { font-size: 14px; font-weight: 500; }
.clients-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 12px; font-size: 14px; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .icon { color: var(--green); }

/* ==========================================================================
   About page
   ========================================================================== */
.image-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 92svh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) 0 40px; color: #fff; background: #1a1a1a;
}
.image-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.image-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, .2) 100%), linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 50%); }
.image-hero h1 { margin-top: 16px; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; }
.image-hero .hero-lead { margin-top: 14px; max-width: 860px; color: rgba(255, 255, 255, .9); }
.image-hero .cta-actions { justify-content: flex-start; }
.glass-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 48px; }
@media (min-width: 900px) { .glass-cards { gap: 16px; } }
.glass-card {
  display: grid; justify-items: center; gap: 4px; padding: 20px 14px; text-align: center;
  border-radius: var(--radius-lg); background: rgba(20, 20, 20, .45); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.glass-card .icon { font-size: 22px; margin-bottom: 6px; }
.glass-card h3 { font-size: 15px; }
.glass-card p { font-size: 12px; color: rgba(255, 255, 255, .75); }

.intro-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.logo-card {
  position: relative; display: grid; place-items: center; align-content: center; gap: 14px;
  aspect-ratio: 5 / 4; border-radius: var(--radius-xl); border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 20%, #fff 0%, var(--surface-2) 70%);
  box-shadow: var(--shadow);
}
.logo-card .logo-mark { width: 96px; height: 96px; border-radius: 24px; font-size: 48px; }
.logo-card .logo-img { height: 120px; }
.logo-card .big-brand { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: .12em; }
.logo-card .tagline { color: var(--muted); font-weight: 500; }
.logo-card .founded { position: absolute; right: 16px; bottom: 16px; display: grid; justify-items: center; padding: 8px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.logo-card .founded strong { font-weight: 700; }
.logo-card .founded span { font-size: 11px; color: var(--muted); }
.intro-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.intro-text p { margin-top: 14px; color: var(--muted); }
.chips { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
@media (min-width: 480px) { .chips { grid-template-columns: repeat(2, 1fr); } }

.mv-card .mv-head { display: flex; align-items: center; gap: 14px; }
.mv-card .mv-head div > span { display: block; font-size: 13px; color: var(--muted-2); font-weight: 500; }
.mv-card p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.sub-title { margin: 56px 0 24px; text-align: center; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; }
.value-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.value-card h4 { font-size: 1.02rem; }
.value-card p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.principles { margin-top: 56px; padding: 36px 20px; border: 1px solid var(--line); border-radius: var(--radius-xl); text-align: center; }
@media (min-width: 640px) { .principles { padding: 44px 36px; } }
.principles > h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; }
.principles > p { margin-top: 8px; color: var(--muted); }
.principles .steps { margin-top: 32px; }
@media (min-width: 1024px) { .principles .steps { grid-template-columns: repeat(4, 1fr); } }

.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px 16px; text-align: center; }
.numbers .icon-box { width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.numbers .icon-box .icon { color: var(--tone); font-size: 24px; }
.numbers strong { display: block; margin-top: 16px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.1; }
.numbers h3 { margin-top: 6px; font-size: 1.05rem; }
.numbers p { font-size: 13px; color: var(--muted); }

.dept-card { padding: 22px; }
.dept-card .dept-head { display: flex; align-items: center; gap: 12px; }
.dept-num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.dept-card h4 { font-size: 1.02rem; }
.dept-card p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 4px var(--gutter) 10px; scrollbar-width: none; }
.faq-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .faq-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; } }
.faq-tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; transition: all .2s;
}
.faq-tabs button:hover { border-color: var(--brand); }
.faq-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 500; }
.faq-panel { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: var(--brand); box-shadow: var(--shadow); }
.faq-item h3 { font-size: 1rem; font-weight: 500; }
.faq-item h3 button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 20px; text-align: left; }
.faq-item h3 .icon { font-size: 20px; transition: transform .3s var(--ease); }
.faq-item.open h3 .icon { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 56px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo strong { display: block; font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.footer-logo span { font-size: 13px; color: var(--muted); }
.footer-about { margin-top: 16px; color: var(--fg-2); font-size: 15px; max-width: 460px; }
.contact-list, .hours { display: grid; gap: 16px; margin-top: 20px; }
.contact-list li, .hours li { display: flex; gap: 12px; }
.contact-list .icon, .hours .icon { margin-top: 4px; font-size: 18px; }
.contact-list div, .hours div { display: grid; }
.contact-list strong, .hours strong { font-size: 15px; }
.contact-list span, .hours span { font-size: 13px; color: var(--muted); }
.contact-list a:hover strong { text-decoration: underline; }
.footer-col h4 { font-size: 1.05rem; font-weight: 600; }
.footer-links { display: grid; gap: 10px; margin-top: 16px; }
.footer-links a { color: var(--fg-2); font-size: 15px; }
.footer-links a:hover { color: var(--fg); text-decoration: underline; }
.follow-title { margin-top: 32px; font-size: 1.5rem !important; font-weight: 700 !important; }
.socials { display: flex; gap: 10px; margin: 14px 0 20px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); transition: all .2s; }
.socials a:hover { background: var(--brand); color: #fff; border-color: var(--brand); --line-ink: var(--brand); }
.socials .icon { font-size: 18px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-block: 24px 96px; font-size: 13px; color: var(--muted); }
.footer-bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
@media (min-width: 768px) { .footer-bottom { padding-bottom: 28px; } }
.footer-legal { font-size: 12px; margin-top: 2px; }

/* ==========================================================================
   Floating contact button + back-to-top
   ========================================================================== */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (min-width: 1024px) { .fab { right: 28px; bottom: 28px; } }
.fab-main {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(29, 78, 137, .6), 0 0 0 6px rgba(29, 78, 137, .15);
  transition: transform .25s var(--ease), background-color .2s;
}
.fab-main:hover { transform: scale(1.06); }
.fab-main .icon { font-size: 24px; }
.fab-main .i-close, .fab.open .fab-main .i-open { display: none; }
.fab.open .fab-main .i-close { display: block; }
.fab.open .fab-main { background: var(--brand-dark); box-shadow: 0 0 0 2px #fff, var(--shadow); }
.fab-menu { display: grid; gap: 10px; justify-items: end; }
.fab-item {
  display: flex; align-items: center; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.95);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.fab.open .fab-item { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.fab.open .fab-item:nth-child(2) { transition-delay: .04s; }
.fab.open .fab-item:nth-child(3) { transition-delay: .08s; }
.fab-label { padding: 6px 12px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; white-space: nowrap; }
.fab-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; border: 2px solid #fff; box-shadow: var(--shadow); }
.fab-icon .icon { font-size: 22px; }
.fab-icon.is-line { background: var(--line-green); --line-ink: var(--line-green); }
.fab-icon.is-dark { background: var(--brand); }
.fab-icon.is-fb { background: #1877f2; }

.to-top {
  position: fixed; right: 20px; bottom: 88px; z-index: 39;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
@media (min-width: 1024px) { .to-top { right: 33px; bottom: 100px; } }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
.fab.open ~ .to-top { opacity: 0; visibility: hidden; }
.to-top .icon { font-size: 20px; }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
