/* ===== โรงเรียนไทยรัฐวิทยา ๙๓ (บ้านลาดตะเคียน) ===== */
:root {
  --g-950: #062a1d;
  --g-900: #0a3a28;
  --g-800: #0f4d35;
  --g-700: #146140;
  --g-600: #1a7a4f;
  --g-500: #239462;
  --g-100: #dcefe3;
  --g-50: #eff7f2;
  --gold: #e2a526;
  --gold-600: #c3881a;
  --gold-100: #fbefd2;
  --ink: #15211b;
  --body: #34433b;
  --muted: #64746b;
  --line: #e2e8e3;
  --bg: #fbfaf6;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 40, 25, .06), 0 8px 24px -8px rgba(10, 40, 25, .12);
  --shadow-lg: 0 2px 4px rgba(10, 40, 25, .05), 0 24px 48px -16px rgba(10, 40, 25, .22);
  --wrap: 1200px;
  --head: "Anuphan", "Noto Sans Thai", system-ui, sans-serif;
  --text: "Noto Sans Thai", "Sarabun", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.3; margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ico { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--g-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar { background: var(--g-950); color: #cfe3d7; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 18px; }
.topbar .social { display: flex; gap: 4px; }
.topbar .social a { width: 30px; height: 30px; justify-content: center; border-radius: 8px; }
.topbar .social a:hover { background: rgba(255,255,255,.08); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: 0 6px 24px -12px rgba(10, 40, 25, .25); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 50px; height: auto; }
.brand-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-t b { font-family: var(--head); font-size: 18px; color: var(--g-900); font-weight: 700; white-space: nowrap; }
.brand-t span { font-size: 13px; color: var(--muted); white-space: nowrap; }

.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 10px; border: 0; background: none;
  font-family: var(--head); font-size: 15.5px; font-weight: 500; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav li.open > button { background: var(--g-50); color: var(--g-700); }
.nav .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav li.open > button .chev { transform: rotate(180deg); }
.nav .cta { background: var(--g-700) !important; color: #fff !important; margin-left: 6px; }
.nav .cta:hover { background: var(--g-800) !important; }
.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.nav li.open > .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 15px; color: var(--body); }
.drop a:hover { background: var(--g-50); color: var(--g-700); }
.drop a .ico { color: var(--g-600); }
.drop .ext { margin-left: auto; width: 13px; height: 13px; opacity: .45; }
.drop-h { font-size: 12px; letter-spacing: .04em; color: var(--muted); padding: 8px 12px 2px; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.burger .ico { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #e9f4ee;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(226,165,38,.20), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(35,148,98,.45), transparent 60%),
    linear-gradient(150deg, var(--g-900), var(--g-950));
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 120px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #f4e3b8; }
.pill i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--g-950); font-style: normal; font-weight: 700; font-size: 12px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; margin: 22px 0 6px; letter-spacing: -.01em; }
.hero h1 .nw { white-space: nowrap; display: inline-block; }
.hero h1 small { display: block; font-size: .5em; font-weight: 500; color: #bfe0cd; margin-top: 6px; letter-spacing: 0; }
.motto { display: flex; align-items: center; gap: 14px; margin: 22px 0 14px; font-family: var(--head); font-size: 22px; color: var(--gold); font-weight: 600; }
.motto::before { content: ""; width: 36px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero p.lead { color: #c4ddcf; max-width: 520px; font-size: 17px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-family: var(--head); font-weight: 600; font-size: 16px; border: 1px solid transparent; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--g-950); box-shadow: 0 8px 20px -8px rgba(226,165,38,.7); }
.btn-gold:hover { background: #ecb43a; }
.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-green { background: var(--g-700); color: #fff; }
.btn-green:hover { background: var(--g-800); }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--g-500); color: var(--g-700); }

/* slider */
.slider { position: relative; border-radius: 22px; overflow: hidden; background: #0003; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12); aspect-ratio: 16/9; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide button { position: absolute; inset: 0; border: 0; background: none; padding: 0; }
.slider-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(4,25,17,.85)); color: #fff; font-family: var(--head); font-size: 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; pointer-events: none; }
.dots { display: flex; gap: 6px; pointer-events: auto; flex: none; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.dots button.on { width: 22px; background: var(--gold); }
.slider .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--g-900); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.slider:hover .arrow, .slider .arrow:focus-visible { opacity: 1; }
.slider .prev { left: 12px; } .slider .next { right: 12px; }

/* ---------- quick links ---------- */
.quick { position: relative; margin-top: -64px; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.q { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 20px; border-right: 1px solid var(--line); transition: background .2s; position: relative; }
.q:last-child { border-right: 0; }
.q:hover { background: var(--g-50); }
.q .qi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--g-50); color: var(--g-700); transition: .2s; }
.q:hover .qi { background: var(--g-700); color: #fff; }
.q .qi .ico { width: 22px; height: 22px; }
.q b { font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 15.5px; line-height: 1.35; }
.q span { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: -6px; }

/* announcement */
.announce { margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: var(--gold-100); color: #6b4a07; border: 1px solid #f2dca5; font-size: 15px; }
.announce .tag { flex: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 600; background: var(--gold); color: var(--g-950); padding: 3px 10px; border-radius: 8px; font-size: 13.5px; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--g-600); letter-spacing: .02em; margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 38px); }
.sec-head p { color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- news ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; font-family: var(--head); font-weight: 500; transition: .2s; }
.chip:hover { border-color: var(--g-500); color: var(--g-700); }
.chip.on { background: var(--g-800); border-color: var(--g-800); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; padding: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--g-50); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--g-800); font-family: var(--head); font-weight: 600; font-size: 12.5px; padding: 3px 10px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.badge[data-c="ประกาศ"] { color: #9a5b00; }
.badge[data-c="กิจกรรม"] { color: #1e5aa8; }
.badge[data-c="เอกสาร"] { color: #6a3fa0; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.card h3 { font-size: 17.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.news-more { text-align: center; margin-top: 36px; }

/* featured first card */
.news-grid .card.feat { grid-column: span 2; flex-direction: row; }
.news-grid .card.feat .thumb { aspect-ratio: auto; flex: 1.35; min-height: 100%; }
.news-grid .card.feat .thumb img { object-position: center; }
.news-grid .card.feat .body { flex: 1; padding: 28px; justify-content: center; }
.news-grid .card.feat h3 { font-size: 23px; -webkit-line-clamp: 3; }
.news-grid .card.feat p { -webkit-line-clamp: 4; font-size: 15.5px; }

/* ---------- leaders ---------- */
.lead-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person .ph { aspect-ratio: 1/1; background: linear-gradient(160deg, #3fa64a, #1e7d36); overflow: hidden; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person .tx { padding: 16px 18px 18px; }
.person b { display: block; font-family: var(--head); color: var(--ink); font-size: 17px; font-weight: 600; }
.person span { font-size: 14px; color: var(--muted); }
.person.main { transform: translateY(-18px); box-shadow: var(--shadow-lg); border-color: transparent; }
.welcome h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 18px; }
.welcome blockquote { margin: 0 0 22px; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font-size: 18px; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.stat { padding: 16px; border-radius: 14px; background: var(--g-50); }
.stat b { display: block; font-family: var(--head); font-size: 26px; color: var(--g-800); font-weight: 700; line-height: 1.2; }
.stat span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: block; margin-top: 4px; }

/* ---------- about tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 6px; background: var(--g-50); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 28px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 10px 18px; border: 0; border-radius: 10px; background: none; font-family: var(--head); font-weight: 500; font-size: 15.5px; color: var(--body); white-space: nowrap; }
.tab[aria-selected="true"] { background: #fff; color: var(--g-800); box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600; }
.panel { display: none; }
.panel.on { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.prose h3 { font-size: 22px; margin-bottom: 12px; }
.prose p { color: var(--body); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--g-100); }
.timeline li { position: relative; padding: 0 0 22px 32px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--g-600); }
.timeline b { display: block; font-family: var(--head); color: var(--g-700); font-size: 15px; }
.timeline span { font-size: 15px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.vision { background: linear-gradient(140deg, var(--g-800), var(--g-950)); color: #e6f2eb; border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; }
.vision::after { content: "“"; position: absolute; right: 20px; top: -30px; font-size: 180px; font-family: Georgia, serif; color: rgba(226,165,38,.18); line-height: 1; }
.vision h3 { color: var(--gold); font-size: 16px; margin-bottom: 10px; }
.vision p { font-size: 19px; font-family: var(--head); color: #fff; margin: 0; position: relative; }
.list-n { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-n li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.list-n li::before { content: counter(n); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--g-50); color: var(--g-700); font-family: var(--head); font-weight: 700; font-size: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.emblem { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.emblem img { width: 100%; max-width: 300px; margin: 0 auto; filter: drop-shadow(0 16px 30px rgba(10,60,35,.18)); }
.meaning { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.meaning div { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.meaning b { display: block; font-family: var(--head); color: var(--ink); font-weight: 600; }
.meaning span { font-size: 14.5px; color: var(--muted); }
.swatches { display: flex; gap: 10px; margin-top: 18px; align-items: center; font-size: 14.5px; }
.sw { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); }
.img-btn { display: block; width: 100%; border: 1px solid var(--line); padding: 0; background: #fff; border-radius: var(--radius); overflow: hidden; position: relative; }
.img-btn::after { content: "คลิกเพื่อขยาย"; position: absolute; right: 12px; bottom: 12px; background: rgba(6,42,29,.82); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 8px; opacity: 0; transition: .2s; }
.img-btn:hover::after { opacity: 1; }

/* ---------- staff ---------- */
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.staff-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.staff-card .img-btn { border: 0; border-radius: 0; aspect-ratio: 4/3.2; }
.staff-card .img-btn img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.staff-card .tx { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.staff-card h3 { font-size: 18px; }
.staff-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: .2s; }
.svc:hover { border-color: var(--g-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc .si { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--g-50); color: var(--g-700); }
.svc .si.gold { background: var(--gold-100); color: var(--gold-600); }
.svc .si .ico { width: 21px; height: 21px; }
.svc b { display: block; font-family: var(--head); color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.svc span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.svc-h { font-family: var(--head); font-size: 18px; color: var(--ink); margin: 36px 0 14px; display: flex; align-items: center; gap: 10px; }
.svc-h:first-of-type { margin-top: 0; }

.agency { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 40px; }
.agency .spp { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.agency .spp img { width: 100%; }
.agency .spp .tx { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.agency .spp .tx b { font-family: var(--head); color: var(--ink); font-weight: 600; }
.agency .links { display: flex; gap: 8px; }
.agency .links a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--g-700); }
.agency .links a:hover { background: var(--g-50); }
.eit { display: flex; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.eit img { width: 100%; object-fit: cover; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 12px; }
.gallery button { border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--g-50); }
.gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery button:nth-child(6) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.05); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.c-card { background: linear-gradient(150deg, var(--g-800), var(--g-950)); color: #d5e8dd; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.c-card h3 { color: #fff; font-size: 22px; }
.c-row { display: flex; gap: 14px; align-items: flex-start; }
.c-row .ci { flex: none; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--gold); }
.c-row small { display: block; font-size: 13px; color: #9fc2ae; }
.c-row a, .c-row div > span { color: #fff; }
.c-row a:hover { text-decoration: underline; }
.c-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.c-social a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 14.5px; }
.c-social a:hover { background: rgba(255,255,255,.16); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--g-50); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.line-box { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: #fff; color: var(--body); border-radius: 14px; padding: 14px; }
.line-box img { border-radius: 10px; cursor: zoom-in; }
.line-box b { display: block; font-family: var(--head); color: var(--ink); }
.line-box span { font-size: 14px; color: var(--muted); }
.line-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: #06c755; color: #fff !important; padding: 7px 14px; border-radius: 9px; font-family: var(--head); font-weight: 600; font-size: 14px; }

/* ---------- footer ---------- */
.footer { background: var(--g-950); color: #a9c6b6; padding: 56px 0 0; font-size: 15px; }
.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.f-brand { display: flex; gap: 14px; align-items: flex-start; }
.f-brand img { width: 58px; }
.f-brand b { display: block; color: #fff; font-family: var(--head); font-size: 17px; font-weight: 600; }
.footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.totop { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--g-700); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; z-index: 40; }
.totop.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(4, 20, 13, .9); display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(6px); }
.lb.open { display: flex; animation: fade .25s ease; }
.lb-in { display: grid; grid-template-columns: minmax(0, auto) 360px; max-width: 1180px; max-height: calc(100vh - 48px); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.lb-in.img-only { grid-template-columns: auto; background: transparent; box-shadow: none; }
.lb-img { background: #0b1f16; display: grid; place-items: center; min-height: 0; overflow: auto; }
.lb-img img { max-height: calc(100vh - 48px); width: auto; max-width: 100%; object-fit: contain; }
.lb-in.img-only .lb-img { background: transparent; }
.lb-in.img-only .lb-img img { border-radius: 14px; }
.lb-tx { padding: 30px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.lb-tx h3 { font-size: 22px; }
.lb-tx p { margin: 0; color: var(--body); }
.lb-tx .meta { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-x, .lb-nav { position: fixed; border: 0; border-radius: 50%; background: rgba(6,30,20,.72); color: #fff; display: grid; place-items: center; width: 48px; height: 48px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); z-index: 2; }
.lb-x:hover, .lb-nav:hover { background: rgba(6,30,20,.92); }
.lb-x { top: 14px; right: 14px; }
.lb-tx .d { display: inline-flex; align-items: center; gap: 6px; }
.lb-nav.p { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-nav.n { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .shade { position: absolute; inset: 0; background: rgba(4,20,13,.5); opacity: 0; transition: .25s; }
.drawer.open .shade { opacity: 1; }
.drawer .sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.open .sheet { transform: none; }
.drawer .sh-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer .sh-b { overflow-y: auto; padding: 10px 12px 24px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer .m-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px; font-family: var(--head); font-weight: 600; color: var(--ink); list-style: none; cursor: pointer; font-size: 16px; }
.drawer .m-link { border-bottom: 1px solid var(--line); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details[open] summary .chev { transform: rotate(180deg); }
.drawer details a { display: block; padding: 9px 12px; font-size: 15px; color: var(--body); border-radius: 8px; }
.drawer details a:hover { background: var(--g-50); }
.drawer details div { padding-bottom: 10px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .q:nth-child(3) { border-right: 0; }
  .q:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .lead-grid, .about-grid, .contact, .agency, .emblem { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .card.feat { grid-column: span 2; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .lb-in { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-img img { max-height: 70vh; }
  .person.main { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .topbar .hide-sm { display: none; }
  .brand img { width: 42px; }
  .brand-t b { font-size: 15.5px; }
  .brand-t span { font-size: 12px; }
  .header .wrap { min-height: 66px; gap: 12px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .q { padding: 16px; }
  .q:nth-child(3) { border-right: 1px solid var(--line); }
  .q:nth-child(2n) { border-right: 0; }
  .q:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .q span { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .card.feat { grid-column: auto; flex-direction: column; }
  .news-grid .card.feat .thumb { aspect-ratio: 16/9; }
  .news-grid .card.feat .body { padding: 18px 20px 20px; }
  .news-grid .card.feat h3 { font-size: 19px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .leaders { gap: 12px; }
  .person .tx { padding: 12px; }
  .person b { font-size: 15px; }
  .person span { font-size: 12.5px; }
  .two, .meaning, .staff-grid, .svc-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .gallery button:nth-child(6) { grid-column: span 2; }
  .f-grid { grid-template-columns: 1fr; }
  .lb { padding: 0; }
  .lb-in { border-radius: 0; max-height: 100vh; height: 100%; }
  .lb-nav { display: none; }
  .vision { padding: 24px; }
  .vision p { font-size: 17px; }
  .announce { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
