:root {
  --ink: #071827;
  --ink-2: #102c40;
  --cyan: #2de2e6;
  --cyan-soft: #b9f7f5;
  --amber: #ffb547;
  --paper: #f4f8fa;
  --white: #ffffff;
  --muted: #647784;
  --line: #cbd9df;
  --max: 1220px;
  --radius: 18px;
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; background: var(--paper); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 99; background: var(--white); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,24,39,.92); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(18px); }
.nav-shell { width: min(var(--max), calc(100% - 40px)); min-height: 74px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; line-height: 1.05; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: .08em; }
.brand small { color: #9fb7c5; font-size: .72rem; }
.brand-mark { width: 38px; height: 38px; border: 2px solid var(--cyan); border-radius: 11px; display: grid; place-items: center; transform: rotate(45deg); }
.brand-mark span { width: 13px; height: 13px; background: var(--amber); border-radius: 50%; }
nav { display: flex; gap: 30px; }
nav a { color: #dce9ef; text-decoration: none; font-size: .92rem; font-weight: 700; }
nav a:hover, nav a:focus-visible { color: var(--cyan); }
.menu-toggle { display: none; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 8px 12px; }
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(45,226,230,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(45,226,230,.18) 1px,transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to right,black,transparent 82%); }
.hero-grid { position: relative; width: min(var(--max), calc(100% - 40px)); min-height: 700px; margin: auto; display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; padding: 90px 0 110px; }
.eyebrow, .section-index { text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .74rem; }
.eyebrow { color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 34px; height: 2px; background: var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 6.2vw, 6rem); line-height: 1.02; letter-spacing: -.045em; margin: 22px 0 28px; }
h1 em { font-style: normal; color: var(--cyan); }
.hero-lead { max-width: 590px; color: #bfd0d9; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.button.primary { color: var(--ink); background: var(--cyan); }
.button.primary:hover { background: #6df4f1; }
.button.ghost { color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.button.ghost:hover { border-color: var(--cyan); }
.hero-stats { display: flex; gap: 42px; margin: 0; }
.hero-stats div { padding-left: 14px; border-left: 2px solid rgba(45,226,230,.45); }
.hero-stats dt { font-size: 1.8rem; font-weight: 900; color: var(--white); }
.hero-stats dd { margin: 0; color: #89a3b2; font-size: .82rem; }
.hero-visual { position: relative; min-height: 530px; }
.hero-card { position: absolute; margin: 0; overflow: hidden; background: #102c40; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 35px 85px rgba(0,0,0,.35); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 18px 20px; font-weight: 800; background: linear-gradient(transparent,rgba(7,24,39,.94)); }
.hero-card figcaption span { color: var(--cyan); }
.hero-card-main { inset: 0 40px 48px 74px; border-radius: 26px; transform: rotate(1.8deg); }
.hero-card-small { width: 42%; height: 42%; right: 0; bottom: 0; border-radius: 18px; transform: rotate(-3deg); }
.signal-orbit { position: absolute; width: 170px; height: 170px; left: 0; top: 4%; border: 1px solid rgba(45,226,230,.35); border-radius: 50%; }
.signal-orbit::after { content:""; position:absolute; inset:25px; border:1px solid rgba(45,226,230,.25); border-radius:50%; }
.signal-orbit i { position: absolute; width: 8px; height: 8px; background: var(--amber); border-radius: 50%; }
.signal-orbit i:nth-child(1) { top: 18px; left: 30px; }.signal-orbit i:nth-child(2) { right: 9px; top: 83px; }.signal-orbit i:nth-child(3) { bottom: 8px; left: 78px; }
.section { padding: 108px max(20px, calc((100% - var(--max))/2)); }
.section-heading { display: grid; grid-template-columns: .5fr 1.25fr .9fr; gap: 44px; align-items: start; margin-bottom: 58px; }
.section-heading h2 { font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 0; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.04rem; }
.section-index { color: #177a86; }
.section-heading.light { color: var(--white); }
.section-heading.light .section-index { color: var(--cyan); }
.section-heading.light > p:last-child { color: #a8bfca; }
.flow-map { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-map article { min-height: 245px; padding: 30px 28px; border-right: 1px solid var(--line); }
.flow-map article:last-child { border-right: 0; }
.flow-map span { font-weight: 900; color: #1998a5; }
.flow-map h3 { font-size: 1.7rem; margin: 46px 0 8px; }
.flow-map p { color: var(--muted); font-size: .93rem; }
.labs, .documents { background: var(--ink-2); }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.lab-card { overflow: hidden; background: #f8fbfc; border-radius: var(--radius); }
.image-link { display: block; height: 470px; overflow: hidden; background: #dce7eb; }
.image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.image-link:hover img { transform: scale(1.025); }
.lab-card-body { padding: 30px; }
.lab-card-body > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.lab-card h3 { font-size: 1.65rem; line-height: 1.2; }
.lab-number { color: #147985; font-size: .76rem; font-weight: 900; letter-spacing: .1em; }
.lab-card-body p, .lab-card-body li { color: #526976; }
.lab-card-body ul { margin-bottom: 0; padding-left: 22px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filter { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.filter.active, .filter:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.equipment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.equipment-card { background: var(--white); border: 1px solid #d7e2e7; border-radius: 14px; padding: 16px 16px 24px; transition: transform .2s, box-shadow .2s; }
.equipment-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,44,64,.1); }
.equipment-card[hidden] { display: none; }
.equipment-art { height: 235px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; margin-bottom: 20px; }
.equipment-art img { width: 100%; height: 100%; object-fit: contain; }
.equipment-art.cyan { background: #daf8f6; }.equipment-art.amber { background: #fff0d8; }.equipment-art.navy { background: #dfeaf0; }.equipment-art.slate { background: #e8edef; }
.equipment-card .tag { margin: 0 0 4px; color: #17808c; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.equipment-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.equipment-card > p:last-child { color: var(--muted); margin-bottom: 0; font-size: .92rem; }
.equipment-text-card { min-height: 355px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); color: var(--white); }
.equipment-text-card > p:last-child { color: #acc2cd; }
.monogram { margin-bottom: auto; font-size: 5.8rem; font-weight: 950; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(45,226,230,.65); }
.document-grid { display: grid; gap: 14px; }
.document-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 22px; align-items: center; padding: 22px 24px; color: var(--white); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; }
.doc-type { width: 58px; height: 66px; display: grid; place-items: center; color: var(--cyan); border: 1px solid rgba(45,226,230,.45); border-radius: 6px; font-size: .72rem; font-weight: 900; }
.doc-meta { margin-bottom: 2px; color: #7fc7cc; font-size: .75rem; font-weight: 800; }
.document-card h3 { margin-bottom: 2px; font-size: 1.25rem; }
.document-card > div:nth-child(2) > p:last-child { color: #9db4c0; margin-bottom: 0; font-size: .9rem; }
.doc-actions { display: flex; gap: 8px; }
.doc-actions a { padding: 8px 13px; color: var(--white); border: 1px solid rgba(255,255,255,.28); border-radius: 6px; text-decoration: none; white-space: nowrap; font-weight: 700; }
.doc-actions a:hover { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--amber); padding-top: 72px; padding-bottom: 72px; }
.footer-cta h2 { font-size: clamp(2rem,4vw,4rem); line-height: 1.1; max-width: 780px; margin-bottom: 0; }
.footer-cta .section-index { color: #694008; }
.footer-cta .button.primary { background: var(--ink); color: var(--white); }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 22px; padding: 28px max(20px,calc((100% - var(--max))/2)); background: var(--ink); color: #99b0bb; font-size: .85rem; }
.site-footer p { margin: 0; }.site-footer a { color: var(--cyan); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-visual { min-height: 600px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .flow-map, .equipment-grid { grid-template-columns: repeat(2,1fr); }
  .flow-map article:nth-child(2) { border-right: 0; }
  .flow-map article { border-bottom: 1px solid var(--line); }
  .lab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-shell { width: min(100% - 28px,var(--max)); min-height: 66px; }
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 66px; padding: 18px 22px 24px; background: var(--ink); flex-direction: column; gap: 14px; border-top: 1px solid rgba(255,255,255,.12); }
  nav.open { display: flex; }
  .hero-grid { width: min(100% - 28px,var(--max)); min-height: auto; padding: 64px 0 80px; gap: 44px; }
  h1 { font-size: clamp(2.8rem,14vw,4.6rem); }
  .hero-stats { gap: 20px; justify-content: space-between; }
  .hero-visual { min-height: 470px; }
  .hero-card-main { inset: 0 12px 62px 18px; }
  .hero-card-small { width: 47%; height: 37%; }
  .section { padding: 76px 20px; }
  .flow-map, .equipment-grid { grid-template-columns: 1fr; }
  .flow-map article { border-right: 0; }
  .image-link { height: 360px; }
  .document-card { grid-template-columns: 58px 1fr; padding: 18px; }
  .doc-actions { grid-column: 1 / -1; }
  .footer-cta { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
