:root {
  --navy: #071A2C;
  --navy-2: #0D2A45;
  --navy-3: #123A5C;
  --cyan: #00BCD9;
  --cyan-light: #4DD8EC;
  --cyan-pale: #E7FAFD;
  --sky-1: #CFF6FB;
  --sky-2: #6FE0EE;
  --ink: #0E1F2E;
  --slate: #4B5D6B;
  --slate-light: #7C8C98;
  --paper: #F4F8FA;
  --white: #FFFFFF;
  --line: #E1E8ED;
  --font-display: 'Poppins', 'Noto Sans Khmer', sans-serif;
  --font-body: 'Inter', 'Noto Sans Khmer', sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.km body { font-family: var(--font-body); }
html.km .nav-links a, html.km .btn, html.km .eyebrow, html.km .acc-cat,
html.km .pt-item, html.km .c-lbl, html.km .stat .lbl { letter-spacing: 0 !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Bilingual toggle: pure CSS, no JS dependency ===== */
.lang-km { display: none; }
.lang-en { display: initial; }
.lang-en.block { display: block; }
.lang-en.flex { display: flex; }
.lang-en.grid { display: grid; }
html.km .lang-en { display: none; }
html.km .lang-km { display: initial; }
html.km .lang-km.block { display: block; }
html.km .lang-km.flex { display: flex; }
html.km .lang-km.grid { display: grid; }
.nav-links-inner { gap: 28px; align-items: center; }
.cta-grid-inner { grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; width: 100%; }

/* ===== Progressive-enhancement reveal =====
   Default: fully visible (no JS required). Only when JS adds "js-on" to <html>
   do reveal elements start hidden and animate in on scroll. This guarantees
   content is never blank if JavaScript fails for any reason. */
.reveal { opacity: 1; transform: none; }
html.js-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js-on .reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  cursor: pointer; border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: var(--navy); box-shadow: 0 8px 24px rgba(0,188,217,0.25); }
.btn-primary:hover { background: var(--cyan-light); box-shadow: 0 12px 30px rgba(0,188,217,0.4); }
.btn-ghost-light { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); }
.btn-outline-dark { background: rgba(7,26,44,0.05); color: var(--navy); border: 1px solid rgba(7,26,44,0.22); padding: 12px 22px; font-size: 13.5px; }
.btn-outline-dark:hover { background: rgba(7,26,44,0.1); }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(225,232,237,0.7); transition: box-shadow 0.3s ease; }
.nav.scrolled { box-shadow: 0 6px 24px rgba(7,26,44,0.06); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-brand img { width: 30px; }
.nav-wordmark { font-family: var(--font-display); line-height: 1.1; display: flex; flex-direction: column; }
.nav-wordmark b { font-size: 14px; font-weight: 700; color: var(--navy); }
.nav-wordmark i { font-style: normal; font-size: 8px; font-weight: 500; letter-spacing: 3px; color: var(--cyan); }
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a { position: relative; font-family: var(--font-display); font-size: 13.5px; font-weight: 500; color: var(--slate); padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--cyan); transition: width 0.25s var(--ease); }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.lang-toggle { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { border: none; background: transparent; padding: 6px 13px; font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--slate); border-radius: 999px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.lang-btn.active { background: var(--navy); color: var(--white); }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ===== Eyebrow / headings ===== */
.eyebrow { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--cyan); margin-bottom: 14px; }
.eyebrow-light { color: var(--cyan-light); }
.eyebrow-dark { color: var(--navy); opacity: 0.75; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.28; color: var(--navy); max-width: 700px; margin: 0 0 18px 0; }
.section-title span { color: var(--cyan); }
.section-lead { font-size: 16px; line-height: 1.75; color: var(--slate); max-width: 640px; margin: 0 0 44px 0; }
.section { padding: 108px 0; position: relative; }
.section-dark { background: var(--navy); }
.section-alt { background: var(--paper); }

/* ===== HERO (editorial, CSS-only animated blobs) ===== */
.hero { position: relative; background: var(--navy); overflow: hidden; padding: 150px 0 90px 0; }
.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; animation: blobMove 18s ease-in-out infinite; }
.blob.b1 { width: 480px; height: 480px; background: radial-gradient(circle, #00BCD9, transparent 70%); top: -160px; right: -100px; animation-delay: 0s; }
.blob.b2 { width: 360px; height: 360px; background: radial-gradient(circle, #4DD8EC, transparent 70%); bottom: -140px; left: -80px; animation-delay: 4s; }
.blob.b3 { width: 260px; height: 260px; background: radial-gradient(circle, #123A5C, transparent 70%); top: 30%; right: 20%; animation-delay: 8s; }
@keyframes blobMove { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px, 24px) scale(1.08); } }
.hero-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 30%, transparent 75%); }
.hero-inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hero-eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; opacity: 0; animation: fadeUpIn 0.8s var(--ease) 0.05s forwards; }
.hero-badge { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0,188,217,0.2); }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: 60px; line-height: 1.12; color: var(--white); max-width: 800px; margin: 0 0 24px 0; opacity: 0; animation: fadeUpIn 0.8s var(--ease) 0.15s forwards; }
.hero-title span { color: var(--cyan); }
.hero-desc { font-size: 17.5px; line-height: 1.75; color: rgba(255,255,255,0.68); max-width: 540px; margin: 0 0 40px 0; opacity: 0; animation: fadeUpIn 0.8s var(--ease) 0.25s forwards; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; opacity: 0; animation: fadeUpIn 0.8s var(--ease) 0.35s forwards; }
@keyframes fadeUpIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.14); opacity: 0; animation: fadeUpIn 0.8s var(--ease) 0.45s forwards; }
.hero-stats .hs-num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--white); }
.hero-stats .hs-lbl { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ===== Marquee (CSS-only, no JS required) ===== */
.marquee-section { background: var(--navy-2); padding: 20px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.marquee-track { display: flex; gap: 52px; width: max-content; animation: marquee 26s linear infinite; }
.marquee-section:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.55); white-space: nowrap; }
.marquee-item svg { width: 15px; height: 15px; color: var(--cyan-light); flex: 0 0 auto; }

/* ===== Scroll-snap gallery ("photo slide" — works with zero JS) ===== */
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px 24px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-card {
  scroll-snap-align: start; flex: 0 0 min(560px, 86vw); min-height: 380px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: 20px; position: relative; overflow: hidden; padding: 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.gallery-card .gc-scene { position: absolute; top: 24px; right: 24px; width: 44%; opacity: 0.95; }
.gallery-card .gc-eyebrow { font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 1.6px; color: var(--cyan-light); margin-bottom: 12px; position: relative; z-index: 2; }
.gallery-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 25px; color: var(--white); margin: 0 0 12px 0; max-width: 300px; position: relative; z-index: 2; }
.gallery-card p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.65); max-width: 320px; margin: 0; position: relative; z-index: 2; }
.gallery-nav { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }
.gallery-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 16px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.gallery-nav button:hover { background: var(--cyan-pale); border-color: var(--cyan); }

/* ===== Bento grid (solutions overview) ===== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 16px; }
.bento-card {
  border-radius: 16px; padding: 24px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  color: var(--white); background: var(--navy-2);
}
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(7,26,44,0.18); }
.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }
.bento-card .bc-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--cyan-light); }
.bento-card .bc-icon svg { width: 20px; height: 20px; }
.bento-card .bc-title { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
.bento-card .bc-count { font-size: 11.5px; color: rgba(255,255,255,0.5); margin-top: 3px; }
.bento-card.c1 { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-3) 100%); }
.bento-card.c2 { background: linear-gradient(140deg, var(--navy-2) 0%, var(--navy) 100%); }
.bento-card.c3 { background: linear-gradient(140deg, var(--navy-3) 0%, var(--navy-2) 100%); }
.bento-card.c4 { background: linear-gradient(140deg, #0A2038 0%, var(--navy) 100%); }
.bento-card.accent { background: linear-gradient(140deg, var(--cyan) 0%, var(--cyan-light) 100%); color: var(--navy); }
.bento-card.accent .bc-icon { background: rgba(7,26,44,0.12); color: var(--navy); }
.bento-card.accent .bc-count { color: rgba(7,26,44,0.6); }

/* ===== Native accordion (catalog) — zero-JS functional ===== */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--navy);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item .acc-num { font-family: var(--font-display); font-size: 12px; color: var(--slate-light); width: 28px; flex: 0 0 auto; }
.acc-item .acc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--cyan-pale); color: var(--cyan); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.acc-item .acc-ic svg { width: 19px; height: 19px; }
.acc-item .acc-label { flex: 1; }
.acc-item .acc-cat { font-size: 11px; font-weight: 500; letter-spacing: 0.6px; color: var(--slate-light); display: block; margin-top: 2px; }
.acc-item .acc-chevron { width: 22px; height: 22px; flex: 0 0 auto; color: var(--slate-light); transition: transform 0.3s var(--ease); }
.acc-item[open] .acc-chevron { transform: rotate(180deg); color: var(--cyan); }
.acc-item[open] summary { color: var(--cyan); }
.acc-body { padding: 4px 4px 28px 82px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.acc-card { background: var(--paper); border-radius: 10px; padding: 16px 18px; border: 1px solid var(--line); }
.acc-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--navy); margin: 0 0 5px 0; }
.acc-card p { font-size: 12.8px; color: var(--slate); line-height: 1.55; margin: 0; }
@keyframes accOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.acc-item[open] .acc-body { animation: accOpen 0.35s var(--ease); }

/* ===== Why / spotlight cards ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.why-card { position: relative; background: var(--white); padding: 28px 24px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease; }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(7,26,44,0.1); border-color: rgba(0,188,217,0.3); }
.why-card .wc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--cyan-pale); color: var(--cyan); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.why-card .wc-icon svg { width: 23px; height: 23px; }
.why-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy); margin: 0 0 8px 0; }
.why-card p { font-size: 13.3px; color: var(--slate); line-height: 1.6; margin: 0; }

/* ===== Process (numbered, horizontal on desktop) ===== */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.process-card { background: var(--paper); border-radius: 16px; padding: 32px 28px; position: relative; border: 1px solid var(--line); }
.process-card .pc-n { font-family: var(--font-display); font-weight: 700; font-size: 42px; color: var(--cyan-pale); -webkit-text-stroke: 1.5px var(--cyan); position: absolute; top: 20px; right: 24px; }
.process-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); margin: 0 0 10px 0; max-width: 80%; }
.process-card p { font-size: 13.8px; color: var(--slate); line-height: 1.65; margin: 0; max-width: 85%; }
.process-arrow { display: none; }
@media (min-width: 981px) {
  .process-grid { position: relative; }
  .process-card:not(:last-child)::after {
    content: ''; position: absolute; top: 50%; right: -24px; width: 24px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 12px); z-index: 1;
  }
}

/* ===== CTA / contact ===== */
.cta { position: relative; background: linear-gradient(165deg, var(--sky-1) 0%, var(--sky-2) 50%, var(--cyan) 100%); padding: 120px 0; overflow: hidden; }
.cta-shapes { position: absolute; inset: 0; pointer-events: none; }
.cta-shapes .shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.25); animation: floatShape 10s ease-in-out infinite; }
.cta-shapes .s1 { width: 220px; height: 220px; top: -60px; right: 8%; }
.cta-shapes .s2 { width: 120px; height: 120px; bottom: 10%; right: 22%; background: rgba(7,26,44,0.06); animation-delay: 1.5s; }
.cta-shapes .s3 { width: 70px; height: 70px; top: 30%; left: 6%; background: rgba(255,255,255,0.3); animation-delay: 3s; }
@keyframes floatShape { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-22px) translateX(12px); } }
.cta-grid { position: relative; z-index: 2; }
.cta-title { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.28; color: var(--navy); margin: 0 0 32px 0; }
.cta-title span { color: var(--white); }
.pdf-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-card { background: rgba(255,255,255,0.55); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.6); border-radius: 18px; padding: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-list .c-row { display: flex; align-items: flex-start; gap: 14px; }
.contact-list .c-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: var(--cyan-light); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-list .c-icon svg { width: 18px; height: 18px; }
.contact-list .c-lbl { font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; color: var(--navy); opacity: 0.65; margin-bottom: 3px; }
.contact-list .c-val { font-size: 14.5px; color: var(--navy); font-weight: 500; }
.contact-list .c-val a { text-decoration: underline; text-underline-offset: 2px; }

/* ===== Footer ===== */
.footer { background: var(--navy); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; }
.footer-brand .nav-wordmark b { color: var(--white); }
.footer-note { font-size: 12px; color: rgba(255,255,255,0.45); max-width: 460px; text-align: right; line-height: 1.6; margin: 0; }

.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.wide { grid-column: span 2; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 42px; }
  .section-title { font-size: 28px; }
  .cta-grid-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .acc-body { grid-template-columns: 1fr; padding-left: 4px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 24px 24px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .hero { padding: 120px 0 60px 0; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .section { padding: 72px 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .bento-card.wide { grid-column: span 2; }
  .bento-card.tall { grid-row: span 1; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-card { flex-basis: 90vw; padding: 28px; min-height: 320px; }
  .gallery-card .gc-scene { width: 50%; opacity: 0.5; }
  .cta-title { font-size: 28px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { display: none; }
  .acc-item summary { font-size: 14px; gap: 10px; }
  .acc-item .acc-num { display: none; }
}

@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions, .pdf-row { flex-direction: column; align-items: stretch; }
}
