:root {
  --navy: #14384b;
  --navy-deep: #092b3c;
  --red: #963328;
  --red-deep: #74251f;
  --gold: #d5ad4c;
  --gold-soft: #f2dc93;
  --cream: #fbf6e9;
  --paper: #fffdf7;
  --ink: #17384c;
  --muted: #65736f;
  --line: #dfd1b6;
  --green: #1d7b68;
  --shadow: 0 20px 55px rgba(41, 29, 13, .12);
  --radius: 22px;
  font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--cream);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 112px; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle at 4% 8%, rgba(213, 173, 76, .13), transparent 24rem), radial-gradient(circle at 96% 80%, rgba(150, 51, 40, .07), transparent 28rem); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.site-shell { width: min(1480px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-150%); padding: 10px 16px; color: #fff; background: var(--red); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.agency-strip { color: #fff7df; background: linear-gradient(90deg, var(--red-deep), #8d3428 48%, var(--red-deep)); border-bottom: 2px solid var(--gold); font-size: 13px; }
.agency-strip .site-shell { min-height: 33px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 253, 247, .96); border-bottom: 1px solid rgba(169, 132, 60, .28); box-shadow: 0 8px 30px rgba(22, 46, 56, .08); backdrop-filter: blur(15px); }
.site-header::after { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--red) 0 12%, var(--gold) 12% 16%, var(--navy) 16% 86%, var(--gold) 86% 90%, var(--red) 90%); }
.header-inner { min-height: 90px; display: flex; align-items: center; gap: 38px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 13px; }
.brand img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(64, 43, 9, .17)); }
.brand span { display: grid; line-height: 1.25; }
.brand strong { font-family: Georgia, "Th Sarabun New", "Leelawadee UI", serif; font-size: 22px; color: var(--navy); }
.brand small { margin-top: 5px; color: #747873; font-size: 13px; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 5px; padding: 6px; background: #faf6eb; border: 1px solid #e8dcc6; border-radius: 17px; }
.primary-nav a { position: relative; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 11px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: color .2s, background .2s, transform .2s; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--red); background: #fff; transform: translateY(-1px); }
.primary-nav a.is-active { color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep)); box-shadow: 0 7px 16px rgba(150, 51, 40, .24); }
.primary-nav .nav-main-site { margin-left: 6px; color: var(--navy); border: 1px solid #d2bc85; background: #fff; }
.primary-nav .nav-main-site span { margin-left: 7px; color: var(--red); }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 5px; border: 1px solid #d6c6a9; background: #fff; border-radius: 12px; min-height: 48px; padding: 10px 13px; cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; background: var(--navy); }
.menu-toggle b { margin-left: 4px; font-size: 14px; }

.hero { position: relative; min-height: 620px; overflow: hidden; color: #fff; background: var(--navy-deep); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 18px; background: linear-gradient(135deg, transparent 8px, #fff9eb 0) 0 0/24px 18px repeat-x, linear-gradient(225deg, transparent 8px, var(--gold) 0) 12px 0/24px 18px repeat-x; opacity: .98; }
.hero-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(7, 38, 54, .98) 5%, rgba(7, 38, 54, .91) 45%, rgba(7, 38, 54, .57) 100%), url("../../assets/hero-thai-heritage-v1.webp"); background-size: cover; background-position: center; transform: scale(1.02); }
.hero-image::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(45deg, transparent 47%, rgba(255,255,255,.6) 49%, transparent 51%); background-size: 34px 34px; mask-image: linear-gradient(to right, #000, transparent 50%); }
.hero-grid { position: relative; z-index: 1; min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(390px, .72fr); gap: clamp(50px, 7vw, 120px); align-items: center; padding-block: 72px 84px; }
.hero-copy { max-width: 790px; }
.hero-kicker { width: fit-content; display: flex; align-items: center; gap: 9px; padding: 7px 13px 7px 7px; margin-bottom: 28px; color: #fff; background: rgba(34, 54, 58, .75); border: 1px solid rgba(227, 192, 105, .55); border-radius: 999px; font-size: 14px; }
.hero-kicker span { padding: 4px 11px; color: #3b2f11; background: var(--gold-soft); border-radius: 999px; font-weight: 800; }
.hero-overline, .section-kicker { margin: 0 0 8px; color: var(--gold); font-weight: 800; letter-spacing: .03em; }
.hero h1 { max-width: 850px; margin: 0; font-family: Georgia, "Th Sarabun New", "Leelawadee UI", serif; font-size: clamp(45px, 5vw, 76px); line-height: 1.13; letter-spacing: -.025em; }
.hero h1 em { color: #f3d476; font-style: normal; }
.hero-lead { max-width: 760px; margin: 24px 0 0; color: rgba(255,255,255,.86); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; border-radius: 11px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-gold { color: #273718; background: linear-gradient(135deg, #f5d474, var(--gold)); box-shadow: 0 10px 24px rgba(213, 173, 76, .24); }
.button-outline { color: #fff; background: rgba(255,255,255,.05); border-color: rgba(244, 213, 130, .65); }
.button-outline:hover { background: rgba(255,255,255,.12); }
.hero-summary { padding: 32px; color: var(--ink); background: rgba(255, 252, 244, .96); border: 1px solid #e7c96f; border-radius: 4px 4px 26px 26px; box-shadow: var(--shadow); position: relative; }
.hero-summary::before { content: ""; position: absolute; inset: -8px -1px auto; height: 11px; background: repeating-linear-gradient(135deg, var(--red) 0 9px, #f1cb62 9px 17px, var(--cream) 17px 25px); }
.summary-label { margin: 0 0 6px; color: var(--red); font-weight: 800; font-size: 14px; }
.hero-summary h2 { margin: 0; font-family: Georgia, "Th Sarabun New", serif; font-size: 29px; line-height: 1.25; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 25px; }
.summary-grid div { padding: 17px 10px; text-align: center; background: #f8f1df; border: 1px solid #ead8af; border-radius: 14px; }
.summary-grid strong { display: block; color: var(--red); font-family: Georgia, serif; font-size: 31px; line-height: 1; }
.summary-grid span { display: block; margin-top: 7px; color: #5d685f; font-size: 12px; line-height: 1.3; }
.summary-note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #e5d5b3; color: #5d6f68; font-size: 14px; }
.summary-note i { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; color: #fff; background: var(--green); border-radius: 50%; font-style: normal; }

.category-section { padding-block: 78px 70px; }
.section-heading, .dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.section-heading h2, .dashboard-heading h2 { margin: 0; font-family: Georgia, "Th Sarabun New", "Leelawadee UI", serif; color: var(--navy); font-size: clamp(32px, 3vw, 47px); line-height: 1.2; }
.section-heading > p, .dashboard-heading > div > p:last-child { max-width: 560px; margin: 0; color: var(--muted); }
.section-kicker { color: var(--red); font-size: 14px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card { position: relative; min-height: 276px; display: flex; flex-direction: column; padding: 24px 22px; background: rgba(255,255,255,.84); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 17px; box-shadow: 0 10px 30px rgba(55, 45, 28, .07); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.category-card::after { content: ""; position: absolute; right: -28px; bottom: -38px; width: 120px; height: 120px; border: 1px solid rgba(213,173,76,.28); border-radius: 50%; box-shadow: 0 0 0 18px rgba(213,173,76,.05), 0 0 0 36px rgba(213,173,76,.03); }
.category-card:hover, .category-card:focus-visible, .category-card.is-current { transform: translateY(-5px); border-color: #c8a64e; box-shadow: 0 18px 42px rgba(55, 45, 28, .14); }
.category-card.is-current { background: linear-gradient(145deg, #fffdf8, #f5e8bd); }
.category-number { width: 50px; height: 50px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep)); border: 4px solid #e1bd62; border-radius: 50%; font-family: Georgia, serif; font-size: 23px; box-shadow: 0 7px 16px rgba(117, 36, 29, .22); }
.category-content { display: flex; flex-direction: column; margin-top: 21px; position: relative; z-index: 1; }
.category-content small { width: fit-content; padding: 3px 9px; color: #fff; background: var(--green); border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 800; }
.category-content strong { margin-top: 11px; color: var(--navy); font-size: 18px; line-height: 1.35; }
.category-content em { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; font-style: normal; }
.category-arrow { position: absolute; right: 19px; bottom: 15px; z-index: 2; color: var(--red); font-size: 25px; transition: transform .2s; }
.category-card:hover .category-arrow { transform: translateX(5px); }

.dashboard-section { padding-block: 68px 88px; background: linear-gradient(180deg, #f2ead8, #fffaf0 65%, #f6eddb); border-block: 1px solid #dfcfac; }
.dashboard-heading { align-items: center; }
.dashboard-heading > div > p { margin: 0; }
.text-link { color: var(--red); border-bottom: 1px solid currentColor; font-weight: 800; white-space: nowrap; }
.text-link span { margin-left: 7px; }
.result-total { min-width: 140px; display: flex; align-items: center; gap: 11px; padding: 12px 17px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.result-total strong { color: var(--red); font-size: 27px; }
.result-total span { color: var(--muted); font-size: 13px; line-height: 1.3; }
.filter-panel { margin-bottom: 28px; padding: 18px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 9px 26px rgba(50, 37, 20, .06); }
.search-box { min-height: 53px; display: flex; align-items: center; gap: 11px; padding: 0 16px; background: #fff; border: 1px solid #d5c4a4; border-radius: 11px; }
.search-box span { color: var(--navy); font-size: 29px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 16px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.filter-buttons button { min-height: 42px; padding: 8px 13px; cursor: pointer; color: var(--ink); background: #f7f0e1; border: 1px solid #dfcfaf; border-radius: 9px; font-weight: 700; font-size: 14px; }
.filter-buttons button b { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-left: 5px; padding: 0 5px; color: var(--red); background: #fff; border-radius: 99px; }
.filter-buttons button:hover, .filter-buttons button:focus-visible, .filter-buttons button.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.filter-buttons button.is-active b, .filter-buttons button:hover b { color: var(--red); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.work-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #decfb1; border-radius: 16px; box-shadow: 0 12px 32px rgba(54, 39, 21, .08); transition: transform .25s, box-shadow .25s, border-color .25s; }
.work-card:hover, .work-card:focus-visible { transform: translateY(-6px); border-color: #b88d31; box-shadow: 0 19px 42px rgba(54, 39, 21, .17); }
.work-cover { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; background: linear-gradient(145deg, var(--navy), #285e70); }
.work-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 63%, rgba(6,27,38,.48)); }
.work-cover > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s; }
.work-card:hover .work-cover > img { transform: scale(1.035); }
.work-cover > span { padding: 20px; text-align: center; font-weight: 800; }
.work-cover > b { position: absolute; z-index: 1; top: 12px; right: 12px; min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 8px; color: #fff; background: var(--red); border: 2px solid var(--gold-soft); border-radius: 50%; font-family: Georgia, serif; font-size: 13px; }
.work-body { min-height: 208px; display: flex; flex-direction: column; padding: 19px; }
.work-body > small { width: fit-content; padding: 4px 9px; color: #176657; background: #e0f1ec; border-radius: 999px; font-weight: 800; line-height: 1.35; }
.work-body > strong { margin-top: 14px; color: var(--navy); font-size: 17px; line-height: 1.55; }
.work-body > em { display: flex; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 17px; color: #677269; border-top: 1px solid #eadfc9; font-size: 13px; font-style: normal; font-weight: 800; }
.work-body > em b { color: var(--red); }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #c8ae77; border-radius: 17px; }
.year-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.year-card { min-height: 235px; display: flex; flex-direction: column; justify-content: center; padding: 30px; background: #fff; border: 1px solid var(--line); border-top: 7px solid var(--navy); border-radius: 16px; box-shadow: 0 13px 32px rgba(52,39,23,.08); transition: transform .2s, box-shadow .2s; }
.year-card:nth-child(2) { border-top-color: var(--red); }
.year-card:nth-child(3) { border-top-color: var(--gold); }
.year-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.year-card small { color: var(--red); font-weight: 800; }
.year-card strong { margin: 5px 0 14px; color: var(--navy); font-family: Georgia, serif; font-size: 46px; }
.year-card span { color: var(--muted); }
.year-card span b { float: right; color: var(--red); }
.scope-note { margin-top: 22px; padding: 22px 25px; background: #fff7da; border-left: 5px solid var(--gold); border-radius: 4px 13px 13px 4px; }
.scope-note strong { color: var(--red); }
.scope-note p { margin: 4px 0 0; color: #596a62; }
.feature-panel { position: relative; min-height: 340px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 40px; padding: 48px; overflow: hidden; color: #fff; background: linear-gradient(125deg, var(--navy-deep), #155064); border: 1px solid rgba(213,173,76,.65); border-radius: 22px; box-shadow: var(--shadow); }
.feature-panel::after { content: ""; position: absolute; right: -120px; top: -190px; width: 450px; height: 450px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.035), 0 0 0 90px rgba(255,255,255,.025); }
.feature-panel > div { position: relative; z-index: 1; max-width: 850px; }
.feature-panel h2 { margin: 0; font-family: Georgia, "Th Sarabun New", serif; color: #fff; font-size: clamp(35px, 4vw, 56px); }
.feature-panel p { color: rgba(255,255,255,.84); font-size: 18px; }
.feature-panel ul { display: grid; gap: 7px; padding-left: 21px; margin: 22px 0 26px; color: #fff4d2; }
.feature-mark { position: relative; z-index: 1; width: 180px; height: 180px; display: grid; place-items: center; justify-self: end; color: #fff; background: linear-gradient(145deg, var(--red), var(--red-deep)); border: 9px solid rgba(238,202,111,.8); outline: 1px solid rgba(255,255,255,.3); outline-offset: 13px; border-radius: 50%; font-family: Georgia, serif; font-size: 76px; box-shadow: 0 20px 40px rgba(0,0,0,.24); }
.feature-mark.is-green { background: linear-gradient(145deg, #2e927d, #0b5b50); }
.feature-mark.is-purple { background: linear-gradient(145deg, #815079, #4e2b58); }

.site-footer { color: rgba(255,255,255,.83); background: var(--navy-deep); border-top: 6px solid var(--gold); }
.footer-grid { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 58px; height: 58px; object-fit: contain; }
.footer-brand span { display: grid; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-brand small { margin-top: 4px; }
.footer-grid nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 18px; }
.footer-grid nav a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-bottom { padding-block: 15px 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

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

@media (max-width: 1240px) {
  .site-shell { width: min(100% - 40px, 1480px); }
  .brand strong { font-size: 19px; }
  .primary-nav a { padding-inline: 12px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  html { scroll-padding-top: 86px; }
  .agency-strip { display: none; }
  .header-inner { min-height: 80px; }
  .brand img { width: 58px; height: 58px; }
  .menu-toggle { display: flex; flex-direction: column; }
  .menu-toggle b { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
  .primary-nav { position: absolute; top: calc(100% + 5px); left: 20px; right: 20px; display: none; margin: 0; padding: 12px; background: #fffdf7; border-radius: 0 0 16px 16px; box-shadow: 0 20px 40px rgba(25,35,37,.18); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { justify-content: flex-start; padding-inline: 15px; }
  .primary-nav .nav-main-site { margin: 5px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; padding-top: 65px; }
  .hero-summary { max-width: 680px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-shell { width: min(100% - 28px, 1480px); }
  .header-inner { gap: 14px; }
  .brand { min-width: 0; }
  .brand img { width: 50px; height: 50px; }
  .brand span { min-width: 0; }
  .brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
  .brand small { font-size: 11px; }
  .primary-nav { left: 14px; right: 14px; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; padding-block: 54px 70px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-lead { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-summary { padding: 24px 19px; }
  .summary-grid { gap: 6px; }
  .summary-grid div { padding-inline: 4px; }
  .category-section { padding-block: 58px; }
  .section-heading, .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 220px; }
  .dashboard-section { padding-block: 54px 65px; }
  .result-total { align-self: stretch; }
  .filter-buttons { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  .filter-buttons button { flex: 0 0 auto; }
  .work-grid { grid-template-columns: 1fr; }
  .work-body { min-height: 185px; }
  .year-grid { grid-template-columns: 1fr; }
  .year-card { min-height: 190px; }
  .feature-panel { grid-template-columns: 1fr; padding: 31px 24px; }
  .feature-mark { width: 120px; height: 120px; justify-self: start; font-size: 52px; }
  .footer-grid { align-items: flex-start; flex-direction: column; padding-block: 34px; }
  .footer-grid nav { justify-content: flex-start; flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --line: #75684c; }
  .category-card, .work-card, .filter-panel, .year-card { border-width: 2px; }
  .primary-nav a:focus-visible, .button:focus-visible, .category-card:focus-visible, .work-card:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
}
