:root {
  --navy: #0b1f3f;
  --navy-2: #14305e;
  --cyan: #19a7d8;
  --cyan-soft: #e6f5fb;
  --ink: #14233b;
  --muted: #55657d;
  --line: #dde5ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}
@supports (padding: max(0px)) {
  .wrap {
    width: auto; max-width: var(--max);
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
    margin-inline: auto;
  }
}

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 63, .92);
  backdrop-filter: blur(10px);
  color: #fff;
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: .12em; text-decoration: none;
}
.mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; background: var(--cyan); color: var(--navy);
  font-size: 20px; letter-spacing: 0;
}
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a { text-decoration: none; font-weight: 500; opacity: .9; }
.bar nav a:hover { opacity: 1; }
.bar nav a.btn { opacity: 1; }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--cyan); color: var(--navy);
  padding: 12px 22px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #3bb8e4; transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; }
.btn-lg { padding: 16px 30px; font-size: clamp(16px, 4.2vw, 20px); overflow-wrap: anywhere; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* hero */
.hero {
  background: radial-gradient(1100px 500px at 85% 0%, #16407a 0%, transparent 60%), var(--navy);
  color: #fff;
  padding: clamp(48px, 9vw, 104px) 0;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  color: var(--cyan); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: 13px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: -.02em; }
.lead { margin-top: 20px; font-size: clamp(17px, 2.2vw, 20px); color: #c9d6ea; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
}

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.section-lead { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 38em; }

.cards { display: grid; gap: 22px; margin-top: 40px; grid-template-columns: 1fr; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 14px 36px rgba(11, 31, 63, .12); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cyan-soft); border-bottom: 1px solid var(--line); }
.card img.fit { object-fit: contain; background: #fff; }
.card > div { padding: 20px 22px 24px; }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--muted); }

.logos { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.logos li {
  width: 160px; height: 160px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.logos img { width: 100%; height: 100%; object-fit: contain; }

.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .section-lead { margin-inline: auto; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; width: 100%; }
.contact .btn { max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.ico { flex: none; }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
@media (max-width: 480px) {
  .contact-actions { flex-direction: column; align-items: stretch; }
}

.site-footer { background: var(--navy); color: #aebdd6; font-size: 14px; padding: 24px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  /* 9 cards in 2 columns: let the last one span the row so there is no orphan */
  .card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .card:last-child:nth-child(odd) img { width: 50%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .card:last-child:nth-child(odd) > div { align-self: center; flex: 1; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; }
  .card:last-child:nth-child(odd) img { width: 100%; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (min-width: 1600px) {
  :root { --max: 1280px; }
  body { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --max: 1480px; }
  body { font-size: 19px; }
  .bar { height: 76px; }
}
@media (max-width: 480px) {
  .bar nav a:not(.btn) { display: none; }
  .hero-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 360px) {
  .brand { letter-spacing: .08em; }
  .logos li { width: calc(50% - 10px); height: auto; aspect-ratio: 1; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
