/* ==========================================================================
   KMPHT Research & Innovation — Design System
   แรงบันดาลใจจาก apple.com: ขาว / ดำ / ฟ้า, ตัวอักษรเป็นพระเอก, การ์ดห่างกัน 12px
   ========================================================================== */

:root {
  /* สี (ค่าที่วัดจาก apple.com) */
  --white: #ffffff;
  --gray-50: #fbfbfd;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-300: #d2d2d7;
  --gray-500: #86868b;
  --gray-600: #6e6e73;
  --ink: #1d1d1f;
  --black: #000000;
  --night: #161617;
  --night-2: #1d1d1f;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-active: #006edb;
  --link: #0066cc;
  --link-dark: #2997ff;

  /* ตัวอักษร */
  --font: "Inter", "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(44px, 7.4vw, 96px);
  --fs-h1: clamp(38px, 5.6vw, 72px);
  --fs-h2: clamp(32px, 4.4vw, 56px);
  --fs-h3: clamp(26px, 3vw, 40px);
  --fs-h4: clamp(20px, 2vw, 24px);
  --fs-lead: clamp(19px, 1.7vw, 24px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-xs: 12px;

  /* Layout */
  --nav-h: 52px;
  --max: 1180px;
  --max-text: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --gap: 12px;
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(.25, .1, .3, 1);
  --ease-apple: cubic-bezier(.4, 0, .6, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--link-dark); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(0, 113, 227, .22); }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 10000;
  padding: 10px 18px; border-radius: 980px; background: var(--blue); color: #fff;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; text-decoration: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.container-text { width: min(100% - var(--gutter) * 2, var(--max-text)); margin-inline: auto; }

/* ==========================================================================
   Navigation — กระจกฝ้า (saturate 180% + blur 20px) แบบ apple.com
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--nav-h);
  background: rgba(251, 251, 253, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-apple), border-color .4s var(--ease-apple);
}
.nav.is-scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav--dark { background: rgba(22, 22, 23, .72); color: #f5f5f7; }
.nav--dark.is-scrolled { border-bottom-color: rgba(255, 255, 255, .08); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-size: 15px; }
.brand__text small { font-size: 10.5px; font-weight: 500; opacity: .62; letter-spacing: .02em; }

.nav__menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; height: var(--nav-h);
  padding: 0 11px; font-size: 13.5px; color: inherit; opacity: .82;
  transition: opacity .25s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link.is-active { opacity: 1; text-decoration: none; }
.nav__link.is-active { font-weight: 600; }
.nav__link .chev { width: 9px; height: 9px; transition: transform .3s var(--ease); }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav__flyout {
  position: absolute; top: calc(var(--nav-h) - 6px); left: 50%; min-width: 260px;
  padding: 10px; border-radius: var(--radius);
  background: rgba(251, 251, 253, .94);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .05);
  color: var(--ink);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px) scale(.98);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s .28s;
}
.nav__item.is-open .nav__flyout { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.nav__flyout a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: 14.5px; }
.nav__flyout a small { display: block; font-size: 12.5px; color: var(--gray-600); line-height: 1.4; }
.nav__flyout a:hover { background: rgba(0, 0, 0, .05); text-decoration: none; }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__cta { font-size: 13px; padding: 6px 14px; }
.nav__toggle { display: none; width: 40px; height: 40px; margin-right: -8px; position: relative; color: inherit; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav-open .nav__toggle span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav-open .nav__toggle span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 1068px) {
  .nav__menu, .nav__actions .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__actions { margin-left: auto; }
}

/* Mobile menu */
.mnav {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 999; overflow-y: auto;
  padding: 18px var(--gutter) 48px;
  background: rgba(251, 251, 253, .97);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.nav-open .mnav { opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-open { overflow: hidden; }
.mnav__group { border-bottom: 1px solid var(--gray-200); padding: 6px 0 14px; }
.mnav__label { display: block; font-size: 12px; color: var(--gray-500); margin: 12px 0 2px; }
.mnav a {
  display: block; padding: 6px 0; font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -.005em;
  opacity: 0; transform: translateY(-8px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.mnav a.sub { font-size: 18px; font-weight: 500; padding: 5px 0; }
.nav-open .mnav a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 28ms + 60ms); }
.mnav a:hover { text-decoration: none; color: var(--blue); }

/* ==========================================================================
   Buttons & links — ปุ่มแคปซูล (border-radius 980px)
   ========================================================================== */
.btn {
  --bg: var(--blue); --fg: #fff; --bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 90px; padding: 12px 23px; border-radius: 980px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: 17px; font-weight: 500; line-height: 1.18; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { text-decoration: none; --bg: var(--blue-hover); --bd: var(--blue-hover); box-shadow: 0 8px 22px -8px rgba(0, 113, 227, .65); transform: translateY(-1px); }
.btn:active { --bg: var(--blue-active); transform: none; }
.btn--ghost { --bg: transparent; --fg: var(--blue); --bd: var(--blue); }
.btn--ghost:hover { --bg: var(--blue); --fg: #fff; }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--light:hover { --bg: #f5f5f7; --bd: #f5f5f7; box-shadow: 0 8px 22px -8px rgba(255, 255, 255, .4); }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; box-shadow: none; }
.btn--sm { padding: 7px 15px; font-size: 14px; min-width: 0; }
.btn .ico { width: 16px; height: 16px; }

.more { display: inline-flex; align-items: center; gap: 2px; font-size: inherit; color: var(--link); }
.more::after { content: "›"; font-size: 1.2em; line-height: 1; transform: translateY(-.04em); transition: transform .3s var(--ease); margin-left: 3px; }
.more:hover::after { transform: translate(3px, -.04em); }
.theme-dark .more, .on-dark .more { color: var(--link-dark); }

.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 17px; align-items: center; margin-top: 24px; }
.ctas--left { justify-content: flex-start; }

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow { display: inline-block; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--blue); margin-bottom: 10px; }
.theme-dark .eyebrow, .on-dark .eyebrow { color: var(--link-dark); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 980px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; background: rgba(0, 113, 227, .1); color: var(--blue);
}
.badge--new { background: linear-gradient(90deg, #ff7a18, #ff2d55); color: #fff; }
.badge--muted { background: var(--gray-200); color: var(--gray-600); }
.theme-dark .badge:not(.badge--new) { background: rgba(41, 151, 255, .16); color: var(--link-dark); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--gray-600); font-weight: 400; }
.theme-dark .lead, .on-dark .lead { color: #a1a1a6; }
.muted { color: var(--gray-600); }
.small { font-size: var(--fs-small); }
.gradient-text {
  background: linear-gradient(100deg, #2997ff 0%, #a78bfa 30%, #f472b6 55%, #2997ff 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
.gradient-text--warm { background-image: linear-gradient(100deg, #ffd27a 0%, #ff9f5a 35%, #ff5f8f 65%, #ffd27a 100%); }
@keyframes shimmer { to { background-position: -220% 0; } }

/* ==========================================================================
   Sections
   ========================================================================== */
main { display: block; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--black); color: #f5f5f7; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head .lead { margin-top: 14px; }
.section-head--left { text-align: left; margin-left: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px); display: grid; place-items: center;
  padding: calc(var(--nav-h) + 72px) 0 96px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #10172a 0%, #05060a 55%, #000 100%);
  color: #f5f5f7;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .9; }
.hero__glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(41, 151, 255, .28) 0%, rgba(167, 139, 250, .14) 35%, transparent 65%);
  filter: blur(20px); animation: breathe 9s var(--ease-apple) infinite alternate;
}
@keyframes breathe { from { transform: translate(-50%, -50%) scale(.92); opacity: .75; } to { transform: translate(-50%, -50%) scale(1.06); opacity: 1; } }
.hero__eyebrow { font-size: clamp(15px, 1.5vw, 19px); font-weight: 600; color: #a1a1a6; letter-spacing: .02em; }
.hero__title { font-size: var(--fs-hero); line-height: 1.12; font-weight: 700; margin-top: 14px; letter-spacing: -.012em; }
.hero__title .line { display: block; }
.hero__sub { font-size: var(--fs-lead); color: #a1a1a6; max-width: 760px; margin: 22px auto 0; line-height: 1.55; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: #86868b; letter-spacing: .08em;
}
.hero__scroll i { width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 14px; position: relative; }
.hero__scroll i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 2s var(--ease-apple) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Page hero (หน้าย่อย) */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px);
  background: radial-gradient(110% 90% at 50% 0%, #0d1424 0%, #000 70%); color: #f5f5f7; text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(40% 50% at 30% 40%, rgba(41, 151, 255, .26), transparent 70%),
              radial-gradient(35% 45% at 72% 30%, rgba(167, 139, 250, .2), transparent 70%);
  animation: drift 16s var(--ease-apple) infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, 4%, 0) scale(1.05); } }
.page-hero h1 { font-size: var(--fs-h1); line-height: 1.15; }
.page-hero .lead { margin: 18px auto 0; max-width: 720px; color: #a1a1a6; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #86868b; margin-bottom: 18px; }
.crumbs a { color: #a1a1a6; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ==========================================================================
   Tiles — การ์ดแบบ apple.com (ข้อความกลางด้านบน, ภาพชิดล่าง, gap 12px)
   ========================================================================== */
.tiles { display: grid; gap: var(--gap); padding: var(--gap); }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 834px) { .tiles--2 { grid-template-columns: 1fr; } }

.tile {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: clamp(500px, 52vw, 640px); padding: clamp(44px, 5vw, 60px) clamp(22px, 4vw, 48px) 0;
  background: var(--gray-100); color: var(--ink);
}
.tile--full { min-height: clamp(560px, 60vw, 720px); }
.tile.theme-dark { background: var(--night); color: #f5f5f7; }
.tile h2, .tile h3 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.16; }
.tile--full h2 { font-size: clamp(40px, 5.2vw, 64px); }
.tile p.tile__sub { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; margin-top: 8px; color: inherit; opacity: .92; max-width: 640px; }
.tile .tile__meta { font-size: 14px; color: var(--gray-600); margin-top: 10px; }
.tile.theme-dark .tile__meta { color: #a1a1a6; }
.tile .ctas { margin-top: 20px; position: relative; z-index: 3; }
.tile__link { position: absolute; inset: 0; z-index: 2; }
.tile__art { position: relative; width: 100%; flex: 1; margin-top: 32px; min-height: 220px; display: grid; place-items: end center; }

/* Media + fallback art: ถ้าภาพโหลดไม่ได้ จะเห็นกราฟิกไล่สีแทน */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--art, linear-gradient(135deg, #1b2a4a, #0b0f19));
}
.media::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent);
}
.media img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .8s var(--ease); }
.media img.is-loading { opacity: 0; }
.media--tile { width: min(100%, 720px); height: clamp(220px, 26vw, 340px); border-radius: var(--radius) var(--radius) 0 0; }
.tile:hover .media img { transform: scale(1.04); }
.media__glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.media__glyph svg { width: clamp(72px, 9vw, 120px); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); }
.media img + .media__glyph { display: none; }
.media.is-broken .media__glyph { display: grid; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 834px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 32px 26px; border-radius: var(--radius); background: var(--white); text-align: left; }
.section--dark .stat { background: var(--night); }
.stat__num { font-size: clamp(44px, 5.4vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; font-size: 15.5px; color: var(--gray-600); line-height: 1.45; }
.section--dark .stat__label { color: #a1a1a6; }

/* ==========================================================================
   Journey — เส้นทางงานวิจัย (เส้นความคืบหน้าเติมตามการเลื่อน)
   ========================================================================== */
.journey { position: relative; display: grid; gap: 18px; max-width: 880px; margin-inline: auto; }
.journey::before, .journey__progress {
  content: ""; position: absolute; left: 31px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12);
}
.journey__progress { background: linear-gradient(#2997ff, #a78bfa, #f472b6); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start;
  padding: 22px 26px 22px 0; border-radius: var(--radius); color: inherit;
  transition: background .35s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .04); text-decoration: none; }
.step__dot {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: #0d0d0f; border: 1px solid rgba(255, 255, 255, .14);
  color: #f5f5f7; transition: border-color .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease);
}
.step__dot svg { width: 26px; height: 26px; }
.step.is-active .step__dot { border-color: transparent; color: #fff; box-shadow: 0 0 0 2px #2997ff, 0 0 32px rgba(41, 151, 255, .55); }
.step__num { font-size: 13px; color: var(--link-dark); font-weight: 600; letter-spacing: .06em; }
.step h3 { font-size: clamp(22px, 2.4vw, 30px); margin-top: 2px; }
.step p { color: #a1a1a6; margin-top: 6px; }
.step .more { margin-top: 10px; color: var(--link-dark); }

/* ==========================================================================
   Rail — แถบเลื่อนแนวนอน (scroll-snap)
   ========================================================================== */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(372px, 82vw); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2)) 28px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-controls { display: flex; justify-content: flex-end; gap: 12px; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(210, 210, 215, .64); color: rgba(0, 0, 0, .56);
  transition: background .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}
.rail-btn:hover { background: rgba(223, 223, 227, .9); color: rgba(0, 0, 0, .8); }
.rail-btn[disabled] { opacity: .35; cursor: default; }
.rail-btn svg { width: 18px; height: 18px; }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--white); color: var(--ink); min-height: 100%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: scale(1.015); box-shadow: 0 18px 48px -10px rgba(0, 0, 0, .18); text-decoration: none; }
.card .media { border-radius: 0; aspect-ratio: 16 / 10; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__kicker { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.card h3 { font-size: 21px; line-height: 1.4; font-weight: 600; }
.card p { font-size: 15.5px; color: var(--gray-600); line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 6px; font-size: 15.5px; }

/* ==========================================================================
   Feature grid / panels
   ========================================================================== */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1068px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 734px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.panel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 44px);
  background: var(--gray-100); color: var(--ink);
}
.section--gray .panel { background: var(--white); }
.panel.theme-dark { background: var(--night); color: #f5f5f7; }
.panel h3 { font-size: var(--fs-h4); line-height: 1.35; }
.panel p { margin-top: 10px; color: var(--gray-600); }
.panel.theme-dark p { color: #a1a1a6; }
.panel__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, #0071e3, #7c5cff); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 113, 227, .7);
}
.panel__icon svg { width: 26px; height: 26px; }
.panel .more { margin-top: 16px; }
.panel--link { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.panel--link:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .22); }
.panel--link > a.cover { position: absolute; inset: 0; z-index: 1; }

/* Spotlight — แสงตามเมาส์บนการ์ดสีเข้ม */
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(41, 151, 255, .16), transparent 60%);
}
.spot:hover::after { opacity: 1; }

/* Prose */
.prose { font-size: 18px; line-height: 1.85; color: #333336; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: var(--fs-h3); margin: 1.6em 0 .6em; color: var(--ink); }
.prose h3 { font-size: var(--fs-h4); margin: 1.4em 0 .5em; color: var(--ink); }
.prose strong { color: var(--ink); }

.list-check { display: grid; gap: 14px; }
.list-check li { position: relative; padding-left: 40px; line-height: 1.6; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 113, 227, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.list-num { counter-reset: n; display: grid; gap: 16px; }
.list-num li { counter-increment: n; position: relative; padding-left: 56px; min-height: 40px; line-height: 1.6; }
.list-num li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: -2px;
  font-size: 26px; font-weight: 700; line-height: 1.2; color: transparent;
  -webkit-text-stroke: 1px var(--blue); font-variant-numeric: tabular-nums;
}
.theme-dark .list-num li::before { -webkit-text-stroke-color: var(--link-dark); }

/* Quote / vision */
.vision { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.45; font-weight: 600; text-align: center; max-width: 980px; margin: 0 auto; letter-spacing: -.005em; }

/* ==========================================================================
   Documents list
   ========================================================================== */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.search {
  position: relative; flex: 1 1 320px; max-width: 520px;
}
.search input {
  width: 100%; height: 48px; padding: 0 18px 0 46px; border-radius: 980px; border: 1px solid var(--gray-300);
  background: var(--white); font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.search svg { position: absolute; left: 17px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--gray-500); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 980px; font-size: 14px; background: var(--white); border: 1px solid var(--gray-300); color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.doc-group { margin-top: 44px; }
.doc-group:first-of-type { margin-top: 0; }
.doc-group__title { display: flex; align-items: baseline; gap: 12px; font-size: var(--fs-h4); margin-bottom: 14px; }
.doc-group__title small { font-size: 14px; font-weight: 500; color: var(--gray-500); }
.docs { border-radius: var(--radius); background: var(--white); overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.section--gray .docs { box-shadow: none; }
.doc {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 22px; color: var(--ink); border-top: 1px solid var(--gray-200);
  transition: background .25s var(--ease);
}
.doc:first-child { border-top: 0; }
a.doc:hover { background: var(--gray-50); text-decoration: none; }
a.doc:hover .doc__go { transform: translateX(3px); color: var(--blue); }
.doc__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gray-100); color: var(--blue); }
.doc__ico svg { width: 22px; height: 22px; }
.doc__ico--sheet { color: #1e8e3e; background: #e8f5ec; }
.doc__ico--doc { color: #1a73e8; background: #e8f0fe; }
.doc__ico--folder { color: #b06000; background: #fef3e2; }
.doc__ico--web { color: #7c3aed; background: #f1ebff; }
.doc__title { font-size: 16.5px; line-height: 1.5; font-weight: 500; }
.doc__meta { font-size: 13px; color: var(--gray-500); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.doc__go { color: var(--gray-500); transition: transform .3s var(--ease), color .3s var(--ease); }
.doc__go svg { width: 18px; height: 18px; }
.doc.is-disabled { opacity: .6; }
.empty { display: none; padding: 48px 20px; text-align: center; color: var(--gray-500); }
.empty.is-shown { display: block; }
[hidden] { display: none !important; }
@media (max-width: 600px) { .doc { grid-template-columns: 40px 1fr; padding: 14px 16px; } .doc__go { display: none; } .doc__ico { width: 40px; height: 40px; } }

/* ==========================================================================
   Timeline (ข่าว / อบรม)
   ========================================================================== */
.year-block { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--gray-200); }
.year-block:first-child { border-top: 0; padding-top: 0; }
.year-block__year { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--gray-300); transition: color .5s var(--ease); }
.year-block.is-inview .year-block__year { color: var(--ink); }
.year-block__items { display: grid; gap: 14px; }
@media (max-width: 834px) { .year-block { grid-template-columns: 1fr; gap: 18px; } .year-block__year { position: static; } }

.news {
  position: relative; display: grid; grid-template-columns: 136px 1fr auto; gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius); background: var(--gray-100); color: var(--ink);
  transition: transform .4s var(--ease-out), background .3s var(--ease), box-shadow .4s var(--ease-out);
}
a.news:hover { text-decoration: none; background: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .2); }
.news__tag { justify-self: start; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 980px; background: #fff; color: var(--gray-600); white-space: nowrap; }
a.news:hover .news__tag { background: var(--gray-100); }
.news h3 { font-size: 17.5px; line-height: 1.5; font-weight: 600; }
.news p { font-size: 14.5px; color: var(--gray-600); margin-top: 4px; }
.news__go { color: var(--blue); }
.news__go svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; gap: 10px; } .news__go { display: none; } .news__tag { justify-self: start; } }

.event { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 30px; border-radius: var(--radius-lg); background: var(--white); }
.event__date { text-align: center; padding: 18px 10px; border-radius: var(--radius); background: linear-gradient(160deg, #0071e3, #5b4bff); color: #fff; align-self: start; }
.event__date b { display: block; font-size: 30px; line-height: 1.1; }
.event__date span { font-size: 13px; opacity: .85; }
.event h3 { font-size: 22px; line-height: 1.45; }
.event dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: 15.5px; }
.event dt { color: var(--gray-500); }
.event dd { margin: 0; }
@media (max-width: 600px) { .event { grid-template-columns: 1fr; gap: 16px; padding: 22px; } .event__date { justify-self: start; padding: 12px 18px; } }

/* ==========================================================================
   SDGs
   ========================================================================== */
.sdg-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 12px; }
@media (max-width: 1068px) { .sdg-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .sdg-grid { grid-template-columns: repeat(2, 1fr); } }
.sdg {
  position: relative; aspect-ratio: 1; padding: 14px; border-radius: 16px; background: var(--c); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.sdg:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 36px -14px var(--c); }
.sdg b { font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.sdg span { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.sdg.is-focus::after { content: "ด้านที่วิทยาลัยเกี่ยวข้อง"; position: absolute; top: 12px; right: 12px; font-size: 10.5px; padding: 3px 8px; border-radius: 980px; background: rgba(0, 0, 0, .28); }
.sdg--logo { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gray-200); justify-content: center; align-items: center; text-align: center; }
.sdg-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sdg-grid--4 .sdg--logo { grid-column: 1 / -1; aspect-ratio: auto; padding: 22px; }
@media (max-width: 600px) { .sdg-grid--4 { grid-template-columns: repeat(2, 1fr); } }
.sdg-strip { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.sdg-strip i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); }
.sdg-strip img { width: 44px; height: 44px; border-radius: 6px; display: block; transition: transform .4s var(--ease-out); }
.sdg-strip img:hover { transform: translateY(-3px) scale(1.12); }
.sdg-mini { display: flex; gap: 6px; margin-bottom: 16px; }
.sdg-mini img { width: 30px; height: 30px; border-radius: 6px; display: block; }
/* official SDG icon tiles */
.sdg--icon { aspect-ratio: auto; padding: 0; background: none; color: var(--ink); gap: 10px; overflow: visible; justify-content: flex-start; }
.sdg--icon img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; display: block; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.sdg--icon span { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink); padding: 0 2px 2px; }
.sdg--icon.is-focus img { box-shadow: 0 0 0 3px var(--white, #fff), 0 0 0 5px var(--c); }
.sdg--icon.is-focus::after { position: static; align-self: flex-start; margin: 0 2px 2px; font-size: 11px; padding: 3px 10px; background: var(--c); color: #fff; }
.sdg-grid--4 .sdg--icon span { font-size: 12.5px; }

/* ==========================================================================
   Team
   ========================================================================== */
.person { text-align: center; padding: 32px 22px; border-radius: var(--radius-lg); background: var(--white); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.person:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .2); }
.avatar {
  width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; position: relative;
  display: grid; place-items: center; font-size: 34px; font-weight: 700; color: #fff; letter-spacing: .02em;
  background: var(--av, linear-gradient(135deg, #0071e3, #7c5cff));
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 18px; line-height: 1.4; }
.person p { font-size: 14px; color: var(--gray-600); margin-top: 6px; line-height: 1.5; }
.person .role { color: var(--blue); font-weight: 600; font-size: 13px; letter-spacing: .02em; margin-top: 8px; }

/* Org chart / optional image */
.figure { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.figure img { width: 100%; height: auto; }

/* Embeds */
.embed { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-200); }
.embed iframe { display: block; width: 100%; height: clamp(380px, 52vw, 600px); border: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: var(--radius-lg); padding: clamp(56px, 8vw, 104px) var(--gutter); background: #000; color: #f5f5f7; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 20% 100%, rgba(41, 151, 255, .35), transparent 70%), radial-gradient(45% 70% at 85% 0%, rgba(244, 114, 182, .25), transparent 70%);
}
.cta-band h2 { font-size: var(--fs-h2); }
.cta-band .lead { margin: 14px auto 0; max-width: 640px; color: #a1a1a6; }

/* Contact */
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.contact-list .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(0, 113, 227, .1); color: var(--blue); }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list b { display: block; font-size: 13px; color: var(--gray-500); font-weight: 500; }
.contact-list span, .contact-list a { font-size: 18px; color: var(--ink); line-height: 1.5; }

/* Notice */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius); background: #fff8e6; color: #5c4400; font-size: 15px; line-height: 1.6; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* ==========================================================================
   Footer — แบบ apple.com (เชิงอรรถ + ไดเรกทอรี + แถบล่าง)
   ========================================================================== */
.footer { background: var(--gray-100); color: var(--gray-600); font-size: 12.5px; line-height: 1.6; padding: 36px 0 24px; }
.footer a { color: #424245; }
.footer a:hover { color: var(--ink); }
.footer__notes { padding-bottom: 18px; border-bottom: 1px solid var(--gray-300); display: grid; gap: 8px; }
.footer__dir { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 24px 0; }
.footer__col h4 { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer__col li { margin-bottom: 8px; }
.footer__col summary { list-style: none; }
.footer__col summary::-webkit-details-marker { display: none; }
.footer__bottom { padding-top: 16px; border-top: 1px solid var(--gray-300); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer__bottom .links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer__bottom .links a { padding: 0 10px; border-left: 1px solid var(--gray-300); }
.footer__bottom .links a:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 834px) {
  .footer__dir { grid-template-columns: 1fr; gap: 0; padding: 8px 0; }
  .footer__col { border-bottom: 1px solid var(--gray-300); }
  .footer__col summary { cursor: pointer; padding: 12px 0; display: flex; justify-content: space-between; }
  .footer__col summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--gray-600); transition: transform .3s var(--ease); }
  .footer__col details[open] summary::after { transform: rotate(45deg); }
  .footer__col h4 { margin: 0; }
  .footer__col ul { padding-bottom: 10px; }
}

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(29, 29, 31, .78); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease-out), background .3s var(--ease);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 18px; height: 18px; }

/* Scroll progress */
.progress { position: fixed; left: 0; top: 0; z-index: 1001; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, #2997ff, #a78bfa, #f472b6); pointer-events: none; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(8px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 120ms); }
.js [data-split].is-in .w { opacity: 1; transform: none; filter: none; }

body { animation: page-in .7s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w { opacity: 1; transform: none; filter: none; }
}

@media print {
  .nav, .mnav, .to-top, .progress, .hero__canvas, .footer__dir { display: none !important; }
  .hero, .page-hero { background: none; color: #000; padding-top: 24px; min-height: 0; }
}

/* เมนูมือถือเปิดอยู่: แถบบนเปลี่ยนเป็นโทนสว่างให้เข้ากับแผงเมนู */
.nav-open .nav--dark { background: rgba(251, 251, 253, .97); color: var(--ink); }
.page-hero h1 .line { display: block; }

/* ตัดบรรทัดตามวลี */
.ph { display: inline-block; max-width: 100%; }
h1, h2, h3, .lead, .eyebrow { text-wrap: balance; }
p, li, .sdg--icon span { text-wrap: pretty; }
.grid > *, .embed, .embed iframe { min-width: 0; max-width: 100%; }

/* ---------- Team cards (click → email) ---------- */
.tier{display:flex;align-items:center;gap:16px;margin:8px 0 22px;color:var(--blue,#0071e3);font-weight:700;font-size:14px;letter-spacing:.04em}
.tier::before,.tier::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(5,34,79,.25))}
.tier::after{background:linear-gradient(270deg,transparent,rgba(5,34,79,.25))}
.tier+.tm-grid{margin-top:0}.tm-lead+.tier{margin-top:56px}
.tm{display:flex;flex-direction:column;background:var(--white);border-radius:var(--radius-lg);overflow:hidden;color:var(--ink);text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.08);transition:transform .5s var(--ease-out),box-shadow .5s var(--ease-out)}
.tm:hover,.tm:focus-visible{transform:translateY(-6px);box-shadow:0 26px 50px -18px rgba(5,30,80,.38)}
.tm__photo{display:block;overflow:hidden;aspect-ratio:4/3.1;background:#e5e7eb}
.tm__photo img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;transition:transform .7s var(--ease-out)}
.tm:hover .tm__photo img{transform:scale(1.05)}
.tm__body{display:flex;flex-direction:column;gap:4px;padding:18px 20px 20px;border-top:4px solid #05224f;transition:border-color .3s}
.tm:hover .tm__body{border-color:var(--blue,#0071e3)}
.tm__role{font-size:15px;font-weight:700;line-height:1.45;color:#05224f}
.tm__en{font-size:12.5px;line-height:1.45;color:var(--gray-600)}
.tm__name{font-size:17px;line-height:1.4;margin-top:8px}
.tm__mail{display:flex;align-items:center;gap:8px;margin-top:10px;padding:9px 12px;border-radius:10px;background:#eef3fb;color:#05224f;font-size:13px;font-weight:600;word-break:break-all;transition:background .3s,color .3s}
.tm__mail svg{width:17px;height:17px;flex:none}
.tm:hover .tm__mail{background:var(--blue,#0071e3);color:#fff}
.tm-lead{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.tm--lead{flex-direction:row}
.tm--lead .tm__photo{flex:0 0 46%;aspect-ratio:auto}
.tm--lead .tm__body{justify-content:center;border-top:0;border-left:4px solid #05224f;padding:24px}
.tm--lead .tm__role{font-size:18px}.tm--lead .tm__name{font-size:20px}
.tm-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:24px}
.tm-grid .tm{grid-column:span 2}
.tm-grid .tm:nth-child(4){grid-column:2/span 2}.tm-grid .tm:nth-child(5){grid-column:4/span 2}
@media(max-width:900px){.tm-lead{grid-template-columns:1fr}.tm-grid{grid-template-columns:repeat(2,1fr)}.tm-grid .tm,.tm-grid .tm:nth-child(n){grid-column:auto}.tm-grid .tm:last-child{grid-column:1/-1;max-width:calc(50% - 12px);justify-self:center}}
@media(max-width:560px){.tm-grid{grid-template-columns:1fr;gap:18px}.tm-grid .tm:last-child{max-width:none}.tm--lead{flex-direction:column}.tm--lead .tm__photo{flex:none;aspect-ratio:4/3.1}.tm--lead .tm__body{border-left:0;border-top:4px solid #05224f;padding:18px 20px 20px}}

/* ---------- Clinic วิจัย (โทนเดียวกับทั้งเว็บ) ---------- */
.ctas-row{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:30px}
.btn .ico{width:18px;height:18px;margin-right:2px}
.svc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gap)}
.svc{position:relative;overflow:hidden;border-radius:var(--radius-lg);padding:clamp(28px,3.4vw,44px);background:var(--white);color:var(--ink);transition:transform .5s var(--ease-out),box-shadow .5s var(--ease-out)}
.svc:hover{transform:translateY(-4px);box-shadow:0 24px 50px -18px rgba(0,0,0,.22)}
.svc__no{position:absolute;top:24px;right:30px;font-size:15px;font-weight:600;letter-spacing:.08em;color:var(--gray-500)}
.svc__ico{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;margin-bottom:20px;background:linear-gradient(135deg,#0071e3,#7c5cff);color:#fff;box-shadow:0 10px 24px -10px rgba(0,113,227,.7)}
.svc__ico svg{width:26px;height:26px}
.svc h3{font-size:var(--fs-h4);line-height:1.35}
.svc__en{font-size:14px;font-weight:600;color:var(--blue);margin:2px 0 12px}
.svc__d{color:var(--gray-600);line-height:1.65;margin:0}
.svc ul{list-style:none;margin:18px 0 22px;padding:0;display:grid;gap:8px}
.svc li{position:relative;padding-left:22px;font-size:15.5px;line-height:1.55}
.svc li::before{content:"";position:absolute;left:2px;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--blue)}
.svc__cta{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--link);text-decoration:none}
.svc__cta svg{width:17px;height:17px;transition:transform .3s var(--ease-out)}
.svc__cta:hover{text-decoration:none}.svc__cta:hover svg{transform:translateX(4px)}
.stp{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap)}
.stp li{padding:32px 26px;border-radius:var(--radius);background:var(--night)}
.stp__n{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#0071e3,#7c5cff);color:#fff;font-weight:700;font-size:18px;margin-bottom:18px}
.stp h3{font-size:19px;color:#f5f5f7;margin-bottom:6px}.stp p{font-size:15px;color:#a1a1a6;line-height:1.65;margin:0}
.aud-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap)}
.aud{padding:30px 26px;border-radius:var(--radius);background:var(--gray-100)}
.aud h3{font-size:18px;margin-bottom:8px}.aud p{font-size:15px;color:var(--gray-600);margin:0;line-height:1.6}
.container--narrow{max-width:820px}
.faq{display:grid;gap:var(--gap)}
.faq details{background:var(--white);border-radius:var(--radius);padding:0 26px}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 0;font-weight:600;font-size:17px}
.faq summary::-webkit-details-marker{display:none}
.faq summary span{flex:none;width:26px;height:26px;border-radius:50%;background:var(--gray-100);position:relative}
.faq summary span::before,.faq summary span::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:1.8px;background:var(--ink);transform:translate(-50%,-50%);transition:transform .3s}
.faq summary span::after{transform:translate(-50%,-50%) rotate(90deg)}
.faq details[open] summary span::after{transform:translate(-50%,-50%) rotate(0)}
.faq details p{margin:0 0 24px;color:var(--gray-600);line-height:1.75}
.cta-band__mail{margin-top:22px;color:#a1a1a6;font-size:15px}
@media(max-width:900px){.svc-grid{grid-template-columns:1fr}.stp,.aud-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.stp,.aud-grid{grid-template-columns:1fr}}

/* ---------- Brand logo (image) ---------- */
.brand__logo{height:44px;width:auto;max-width:none;flex:none;display:block}
.brand__logo--dark{display:none}
.nav-open .nav--dark .brand__logo--light{display:none}
.nav-open .nav--dark .brand__logo--dark{display:block}
@media(max-width:560px){.brand__logo{height:38px}}

/* ---------- ระบบบริการนักวิจัย ---------- */
.sys-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap)}
.sys{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--radius-lg);padding:clamp(28px,3vw,40px);background:var(--white);color:var(--ink);transition:transform .5s var(--ease-out),box-shadow .5s var(--ease-out)}
.sys:hover{transform:translateY(-6px);box-shadow:0 28px 56px -20px rgba(0,0,0,.28)}
.sys .badge{align-self:flex-start;margin-bottom:18px}
.sys__ico{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;margin-bottom:18px;background:var(--g,linear-gradient(135deg,#0071e3,#7c5cff));color:#fff;box-shadow:0 12px 26px -12px rgba(0,0,0,.5)}
.sys__ico svg{width:28px;height:28px}
.sys h3{font-size:21px;line-height:1.4}
.sys__en{font-size:13px;color:var(--gray-500);margin:4px 0 14px;line-height:1.5}
.sys__tag{font-size:17px;font-weight:600;color:var(--blue);line-height:1.5;margin:0 0 10px}
.sys__d{color:var(--gray-600);line-height:1.65;margin:0}
.sys ul{list-style:none;margin:18px 0 26px;padding:0;display:grid;gap:8px}
.sys li{position:relative;padding-left:22px;font-size:15px;line-height:1.55}
.sys li::before{content:"";position:absolute;left:2px;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--blue)}
.sys__btn{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:8px}
.sys__btn svg{width:17px;height:17px}
.launch__all{text-align:center;margin-top:28px}
@media(max-width:1000px){.sys-grid{grid-template-columns:1fr}}

/* Page figure (ภาพประกอบหน้าย่อย) */
.pg-fig { position: relative; z-index: 2; margin-top: calc(clamp(56px, 7vw, 96px) * -.62); padding-bottom: clamp(8px, 2vw, 24px); }
.pg-fig figure { position: relative; margin: 0; border-radius: clamp(18px, 2.4vw, 30px); overflow: hidden; background: var(--gray-100); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06); aspect-ratio: 5 / 2; }
.pg-fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-apple); }
.pg-fig figure:hover img { transform: scale(1.03); }
.pg-fig figure::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.pg-fig figcaption { position: absolute; z-index: 1; left: clamp(16px, 2.4vw, 32px); bottom: clamp(12px, 2vw, 24px); right: 16px; color: #fff; font-size: clamp(13px, 1.5vw, 16px); font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
@media (max-width: 700px) { .pg-fig figure { aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: reduce) { .pg-fig img { transition: none; } }
