@font-face {
  font-family: "Bai Jamjuree";
  src: url("../fonts/BaiJamjuree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bai Jamjuree";
  src: url("../fonts/BaiJamjuree-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bai Jamjuree";
  src: url("../fonts/BaiJamjuree-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bai Jamjuree";
  src: url("../fonts/BaiJamjuree-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cobalto: #2d68c4;
  --cobalto-deep: #2454a0;
  --cobalto-soft: #e9f0fa;
  --ink: #152238;
  --muted: #5b6b82;
  --line: #dce3ef;
  --paper: #ffffff;
  --fog: #f3f5fa;
  --shell: min(1120px, calc(100vw - 40px));
  --header-h: 78px;
  --r: 12px;
  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 16px 48px rgba(45, 104, 196, 0.12);
  font-family: "Bai Jamjuree", system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalto); text-decoration: none; }
a:hover { color: var(--cobalto-deep); }
.shell { width: var(--shell); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 227, 239, 0.95);
  backdrop-filter: blur(12px);
}
.logo-link img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}
.main-nav a {
  position: relative;
  padding: 28px 0 24px;
  color: #3e4a5c;
  font-weight: 600;
  font-size: 0.9rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 50% 16px;
  width: 0;
  height: 2px;
  background: var(--cobalto);
  transition: width 200ms ease, left 200ms ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after {
  left: 0;
  width: 100%;
}
.main-nav a.is-active { color: var(--cobalto); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 14px;
  background: var(--cobalto);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
}
.header-phone:hover { background: var(--cobalto-deep); color: #fff !important; }
.header-phone small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.9;
}
.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn--primary { background: var(--cobalto); color: #fff !important; }
.btn--primary:hover { background: var(--cobalto-deep); color: #fff !important; }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink) !important; }
.btn--outline:hover { border-color: var(--cobalto); color: var(--cobalto) !important; }
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff !important;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff !important; }
.btn--light { background: #fff; color: var(--cobalto-deep) !important; }

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  background:
    radial-gradient(ellipse 80% 70% at 85% 20%, rgba(45, 104, 196, 0.18), transparent 55%),
    linear-gradient(165deg, #0f1f3d 0%, #1b335f 45%, #2d68c4 120%);
  background-size: 100% 100%, 140% 140%;
  color: #fff;
  overflow: hidden;
  animation: hero-shift 18s ease-in-out infinite alternate;
}
@keyframes hero-shift {
  from { background-position: 0 0, 0% 50%; }
  to { background-position: 0 0, 100% 50%; }
}
.hero__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  animation: orb-float 12s ease-in-out infinite;
}
.hero__orb--1 {
  width: 280px;
  height: 280px;
  top: 8%;
  right: 8%;
  background: radial-gradient(circle, rgba(158, 197, 255, 0.45), transparent 70%);
  animation-duration: 14s;
}
.hero__orb--2 {
  width: 180px;
  height: 180px;
  bottom: 12%;
  right: 28%;
  background: radial-gradient(circle, rgba(45, 104, 196, 0.5), transparent 70%);
  animation-duration: 11s;
  animation-delay: -3s;
}
.hero__orb--3 {
  width: 120px;
  height: 120px;
  top: 40%;
  right: 42%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  animation-duration: 16s;
  animation-delay: -6s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.08); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 40%, #000 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
  opacity: 0.7;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}
.hero__mark {
  position: absolute;
  right: -2%;
  bottom: -8%;
  width: min(420px, 48vw);
  opacity: 0.1;
  pointer-events: none;
  animation: mark-drift 20s ease-in-out infinite alternate;
}
@keyframes mark-drift {
  from { transform: rotate(-8deg) translate(0, 0); opacity: 0.08; }
  to { transform: rotate(-4deg) translate(-12px, -18px); opacity: 0.14; }
}
.hero__content { position: relative; z-index: 1; max-width: 640px; }
.proof-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.proof-line i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalto);
  margin: 0 0 0.5rem;
}
.hero .eyebrow { color: #9ec5ff; }
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero h1 span { display: block; font-weight: 500; opacity: 0.9; }
.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Sections */
.section { padding: 4rem 0; }
.section--fog { background: var(--fog); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}
.section-head p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* Stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.stat-strip article {
  background: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-strip strong {
  display: block;
  font-size: 1.35rem;
  color: var(--cobalto);
  font-weight: 700;
}
.stat-strip span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.35rem 1.25rem;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.service-card:hover {
  border-color: #b8c9f0;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-card.reveal.is-visible {
  transition-delay: calc(var(--i, 0) * 0.06s);
}
.service-card__n {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cobalto);
  margin-bottom: 0.65rem;
}
.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.split h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
}
.split p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}
.split p strong { color: var(--ink); }
.timeline {
  display: grid;
  gap: 0.85rem;
}
.timeline__item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.timeline__year {
  font-weight: 700;
  color: var(--cobalto);
  font-size: 0.92rem;
}
.timeline__item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}
.timeline__item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Markets */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pill-row li {
  padding: 0.45rem 0.85rem;
  background: var(--cobalto-soft);
  color: var(--cobalto-deep);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  animation: pill-pop 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
@keyframes pill-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* Flow strip (subtle motion under services) */
.flow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(90deg, var(--cobalto-soft), #fff 40%, var(--cobalto-soft));
  background-size: 200% 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  animation: flow-bg 10s ease-in-out infinite alternate;
}
@keyframes flow-bg {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.flow-strip span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.flow-strip .flow-arrow {
  color: var(--cobalto);
  font-weight: 700;
  animation: arrow-pulse 1.6s ease-in-out infinite;
}
@keyframes arrow-pulse {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(4px); opacity: 1; }
}

/* CTA */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 1.75rem;
  background: linear-gradient(135deg, #1b335f, var(--cobalto));
  color: #fff;
  border-radius: 16px;
}
.cta-band h2 { margin: 0 0 0.4rem; font-size: 1.35rem; color: #fff; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.88); max-width: 28rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* Page hero */
.page-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
  background: linear-gradient(165deg, #0f1f3d, #1b335f 60%, var(--cobalto));
  color: #fff;
}
.page-hero .eyebrow { color: #9ec5ff; }
.page-hero h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}
.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 0.85rem;
}
.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
}
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(45, 104, 196, 0.35);
  border-color: var(--cobalto);
}
.form-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
}

.group-links-label {
  margin: 1.5rem 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.group-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.group-links a,
.group-links .is-current {
  font-size: 0.95rem;
  font-weight: 600;
}
.group-links .is-current {
  color: var(--ink);
}

/* Footer */
.site-footer {
  padding: 2.75rem 0 1.5rem;
  background: #0f1f3d;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 2rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: 2.5rem 3rem;
  align-items: start;
}
.site-footer__brand {
  max-width: 22rem;
}
.site-footer__logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1rem;
}
.site-footer__logo img {
  height: 44px;
  width: auto;
  margin: 0;
}
.site-footer__tagline {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.site-footer__address {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
.site-footer__address a {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  width: fit-content;
}
.site-footer__address a:hover { color: #fff; }
.site-footer__col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ec5ff;
  font-weight: 700;
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.site-footer__col li { margin: 0; }
.site-footer__col a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-footer__col a:hover { color: #fff; }
.site-footer__current {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero__orb,
  .hero__grid,
  .hero__mark,
  .flow-strip,
  .flow-strip .flow-arrow,
  .pill-row li {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 0.85rem 0.4rem; border-bottom: 1px solid #eef2f7; }
  .main-nav a::after { display: none; }
  .menu-button { display: inline-flex; }
  .header-phone span { display: none; }
  .stat-strip { grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
  .service-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  .hero { min-height: auto; padding-bottom: 3rem; }
}

@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; }
}
