:root {
  --forest: #3d2378;
  --forest-2: #6b42c8;
  --green-700: #6b42c8;
  --green-500: #9b7bf0;
  --lime: #f3edff;
  --green-100: #f1ebff;
  --cream: #fdfcff;
  --mint: #d8c9ff;
  --paper: #ffffff;
  --ink: #1f1633;
  --muted: #645a78;
  --line: #ebe5f7;
  --gold: #8b5cf6;
  --radius: 20px;
  --shadow: 0 10px 40px -12px rgba(98, 70, 156, .22);
  --shadow-lg: 0 30px 80px -20px rgba(98, 70, 156, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Sarabun", "Leelawadee UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Prompt", "Sarabun", sans-serif; line-height: 1.25; margin: 0 0 .5em; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
.wrap { width: min(1200px, 92vw); margin: 0 auto; }
.small { font-size: .9rem; color: var(--muted); }
::selection { background: var(--lime); color: var(--forest); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .4s, box-shadow .4s; }
.topbar.solid { background: rgba(98, 70, 156, .86); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 6px 30px rgba(0,0,0,.18); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #fff; font-family: "Prompt", sans-serif; font-weight: 600; line-height: 1.15; }
.brand small { display: block; font-weight: 300; font-size: .78rem; opacity: .75; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--lime), var(--green-500)); color: var(--forest); display: grid; place-items: center; box-shadow: 0 0 24px rgba(214, 196, 255, .45); }
.brand-mark svg { width: 24px; height: 24px; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; color: rgba(255,255,255,.85); padding: 8px 13px; border-radius: 999px; font-size: .94rem; transition: .25s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav a.active { color: var(--forest); background: var(--lime); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 10px 8px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; padding: 120px 0 90px; background: var(--forest); }
.hero-bg {
  position: absolute; inset: -40px;
  background:
    linear-gradient(105deg, rgba(88, 62, 148, .96) 0%, rgba(88, 62, 148, .82) 42%, rgba(88, 62, 148, .35) 100%),
    url("../images/satellite.jpg") center / cover no-repeat;
  transform: scale(1.06);
  animation: kenburns 30s ease-in-out infinite alternate;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--cream)); pointer-events: none; }
@keyframes kenburns { to { transform: scale(1.16) translate(-2%, -1%); } }
.hero-inner { position: relative; z-index: 2; }
.eyebrow { display: inline-block; color: var(--lime); font-weight: 600; font-size: .88rem; letter-spacing: .02em; padding: 6px 14px; border: 1px solid rgba(214, 196, 255, .4); border-radius: 999px; background: rgba(214, 196, 255, .08); margin: 0 0 22px; }
.hero h1 { margin: 0; }
.h1-small { display: block; font-weight: 300; font-size: clamp(1.3rem, 2.6vw, 2rem); opacity: .9; }
.h1-big { display: block; font-weight: 800; font-size: clamp(3.4rem, 9vw, 7.4rem); line-height: 1.05; letter-spacing: -.01em;
  background: linear-gradient(100deg, #fff 10%, var(--lime) 55%, var(--mint) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1-big em { display: block; font-style: normal; font-weight: 500; font-size: .36em; letter-spacing: 0; margin-top: 6px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 300; max-width: 34em; opacity: .9; margin: 22px 0 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; gap: 8px; align-items: center; padding: 13px 26px; border-radius: 999px;
  background: var(--green-700); color: #fff; text-decoration: none; font-weight: 600; font-family: "Prompt", sans-serif;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn.glow { background: linear-gradient(135deg, var(--lime), #b892ff); color: var(--forest); box-shadow: 0 10px 40px -8px rgba(214, 196, 255, .7); }
.btn.glow:hover { box-shadow: 0 16px 50px -6px rgba(214, 196, 255, .9); }
.btn.ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn.ghost:hover { background: rgba(255,255,255,.14); }
.btn.small { padding: 8px 18px; font-size: .92rem; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 56px; max-width: 900px; }
.stat { padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.stat b { display: block; font-family: "Prompt", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; color: #fff; }
.stat span { color: rgba(255,255,255,.72); font-size: .9rem; }

.hero-leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.leaf { position: absolute; top: -40px; width: 22px; height: 22px; opacity: .55; animation: fall linear infinite; }
.leaf::before { content: ""; position: absolute; inset: 0; background: var(--c, var(--lime)); border-radius: 0 80% 0 80%; }
@keyframes fall {
  0% { transform: translate(0, -5vh) rotate(0); }
  50% { transform: translate(var(--dx, 40px), 55vh) rotate(200deg); }
  100% { transform: translate(calc(var(--dx, 40px) * -0.5), 110vh) rotate(400deg); }
}
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 34px; width: 28px; height: 46px; border: 2px solid rgba(23,35,27,.35); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--green-700); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.tinted { background: linear-gradient(180deg, #f1ebff, #fbf9ff); }
.section.dark { background: radial-gradient(1000px 500px at 80% 0%, #9a7bd8 0%, transparent 60%), var(--forest); color: #f1ecfb; }
.sec-head { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 18px; }
.sec-num { font-family: "Prompt", sans-serif; font-weight: 800; font-size: clamp(3.6rem, 7vw, 5.6rem); line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--green-500); opacity: .55; }
.dark .sec-num { -webkit-text-stroke-color: var(--lime); }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--green-500); font-family: "Prompt", sans-serif; }
.dark .kicker { color: var(--lime); }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; margin: 2px 0 0; color: var(--forest); }
.dark .sec-head h2 { color: #fff; }
.sec-sub { color: var(--muted); max-width: 46em; margin: 0 0 40px; font-size: 1.05rem; }
.dark .sec-sub { color: rgba(241,236,251,.72); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.big-quote { font-family: "Prompt", sans-serif; font-weight: 300; font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.55; color: var(--forest); margin: 0 0 32px; }
.big-quote mark { background: linear-gradient(transparent 62%, rgba(214, 196, 255, .7) 62%); color: inherit; font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; background: var(--paper); padding: 26px 28px; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; }
.facts dt { font-weight: 600; color: var(--green-700); }
.facts dd { margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--lime), var(--green-700)); }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 72px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 14px;
  width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--green-700); border: 2px solid var(--green-500);
  display: grid; place-items: center; font-family: "Prompt", sans-serif; font-weight: 700; font-size: 1.15rem; box-shadow: var(--shadow);
  transition: .3s;
}
.steps li:hover::before { background: var(--green-700); color: #fff; transform: scale(1.08); }
.steps b { display: block; font-family: "Prompt", sans-serif; font-weight: 600; font-size: 1.08rem; }
.steps span { color: var(--muted); font-size: .95rem; }

/* ---------- 3D map ---------- */
.map3d-shell { width: min(1400px, 96vw); margin: 0 auto; display: grid; grid-template-columns: 1fr 320px; gap: 0; border-radius: 28px; overflow: hidden; background: #7353b0; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 120px -30px rgba(0,0,0,.7); }
.map3d-stage { position: relative; overflow: hidden; height: min(78vh, 720px); min-height: 460px; background: radial-gradient(circle at 50% 40%, #cfe7f2, #8db8c9); cursor: grab; }
.map3d-stage:active { cursor: grabbing; }
.map3d-stage canvas { display: block; }
.map3d-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--forest); font-family: "Prompt", sans-serif; }
.map3d-loading.error { color: #7a1d1d; text-align: center; padding: 20px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(98,70,156,.15); border-top-color: var(--green-700); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lbl3d { font-family: "Prompt", sans-serif; font-size: 12px; font-weight: 500; color: #fff; background: rgba(98,70,156,.78); padding: 2px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; border: 1px solid rgba(255,255,255,.2); }
.lbl3d.zone { background: var(--c); color: #4b2f86; font-weight: 700; font-size: 13px; border-color: rgba(255,255,255,.6); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.lbl3d.road { background: none; border: 0; color: rgba(255,255,255,.85); font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.labels-off .lbl3d { display: none; }

.map3d-panel { padding: 24px 22px; display: flex; flex-direction: column; gap: 22px; background: linear-gradient(180deg, #4a2585, #4b2f86); }
.panel-label { margin: 0 0 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-family: "Prompt", sans-serif; font-weight: 600; }
.panel-label b { color: #fff; letter-spacing: 0; text-transform: none; font-size: .95rem; margin-left: 6px; }
.fly-btns { display: grid; gap: 8px; }
.fly-btns button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: .93rem;
  padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #f1ecfb; cursor: pointer; transition: .2s;
}
.fly-btns button:hover, .fly-btns button.on { background: rgba(214,196,255,.14); border-color: var(--lime); }
.fly-btns i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.range-scale { display: flex; justify-content: space-between; font-size: .75rem; opacity: .6; }
.toggles { display: flex; gap: 16px; flex-wrap: wrap; font-size: .92rem; }
.toggles input { accent-color: var(--lime); }
.info-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 16px 18px; min-height: 150px; transition: border-color .3s; }
.info-card.active { border-color: var(--c, var(--lime)); box-shadow: inset 4px 0 0 var(--c, var(--lime)); }
.info-card h4 { color: #fff; margin: 0 0 6px; font-size: 1.1rem; }
.info-card p { margin: 4px 0; font-size: .9rem; color: rgba(241,236,251,.8); }
.info-card .size { font-family: "Prompt", sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--c, var(--lime)); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .82rem; opacity: .85; margin-top: auto; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* ---------- areas ---------- */
.area-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.area-card { position: relative; background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.area-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.area-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f1eef6; }
.area-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); cursor: zoom-in; }
.area-card:hover .area-media img { transform: scale(1.07); }
.area-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(98,70,156,.85)); pointer-events: none; }
.area-tag { position: absolute; z-index: 2; left: 18px; bottom: 14px; color: #fff; }
.area-tag small { display: inline-block; background: var(--c); color: #4b2f86; font-weight: 700; font-family: "Prompt", sans-serif; font-size: .78rem; padding: 2px 10px; border-radius: 999px; }
.area-tag h3 { margin: 6px 0 0; font-size: 1.4rem; color: #fff; }
.area-size { position: absolute; z-index: 2; right: 16px; top: 14px; background: rgba(255,255,255,.92); border-radius: 14px; padding: 4px 12px; font-family: "Prompt", sans-serif; font-weight: 700; color: var(--forest); font-size: 1.15rem; line-height: 1.3; text-align: right; }
.area-size small { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); }
.area-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.area-body p { margin: 0 0 10px; }
.area-body ul { margin: 0 0 12px; padding-left: 20px; font-size: .95rem; }
.area-meta { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.area-actions { display: flex; gap: 14px; margin-top: 12px; }
.link { font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; background: none; border: 0; color: var(--green-700); padding: 0; }
.link:hover { text-decoration: underline; }

.buildings { margin-top: 40px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 24px; }
.buildings summary { cursor: pointer; font-weight: 600; padding: 16px 0; color: var(--green-700); font-family: "Prompt", sans-serif; }
.buildings[open] { padding-bottom: 24px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--forest-2); color: #fff; font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: #f7f3ff; }

/* ---------- geo ---------- */
.geo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.geo-card { position: relative; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); padding: 26px; overflow: hidden; transition: transform .35s var(--ease); }
.geo-card:hover { transform: translateY(-5px); }
.geo-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--g); opacity: .18; filter: blur(6px); }
.geo-icon { font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--g) 25%, white); }
.geo-card h3 { margin: 14px 0 6px; color: var(--forest); font-size: 1.3rem; }
.geo-card ul { padding-left: 20px; margin: 0; }
.big-num { font-family: "Prompt", sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1.1; color: var(--forest); }
.big-num small { font-size: .9rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.tip { position: relative; background: #f5efff; border-radius: 12px; padding: 9px 12px 9px 36px; font-size: .92rem; margin: 14px 0 0; }
.tip::before { content: "💡"; position: absolute; left: 10px; top: 9px; }
.gauge { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.gauge small { grid-column: 2; text-align: center; }
.gauge-bar { position: relative; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #ef4444, #f59e0b, #facc15, #22c55e, #3b82f6, #6366f1, #8b5cf6); }
.gauge-bar i { position: absolute; top: -4px; bottom: -4px; border: 2.5px solid var(--forest); border-radius: 6px; background: rgba(255,255,255,.35); }

.tables-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.panel { background: var(--paper); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 0; color: var(--forest); }
.light-bars { display: grid; gap: 9px; margin-top: 16px; }
.lb-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 10px; font-size: .88rem; }
.lb-track { height: 14px; background: #f1eef6; border-radius: 8px; overflow: hidden; }
.lb-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #fde68a, #f59e0b); width: 0; transition: width 1.4s var(--ease); }
.lb-row b { font-weight: 600; text-align: right; }

.wind-chart { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding: 16px 10px 0; margin: 14px 0 16px; border-bottom: 2px solid var(--line); }
.wind-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .8rem; color: var(--muted); gap: 4px; }
.wind-bar i { display: block; width: 100%; max-width: 48px; background: linear-gradient(180deg, var(--mint), var(--green-700)); border-radius: 10px 10px 0 0; height: 0; transition: height 1.2s var(--ease); }
.wind-bar i.calm { background: var(--line); }
.wind-bar b { color: var(--ink); font-weight: 600; }
.wind-bar .arrow { font-size: 1rem; color: var(--green-700); }

/* ---------- maps ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-family: "Prompt", sans-serif; transition: .2s;
}
.tabs button:hover { border-color: var(--green-500); }
.tabs button[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.tabs.sub button { font-size: .9rem; padding: 6px 14px; font-weight: 500; }
.tabs.sub button[aria-selected="true"] { background: var(--lime); color: var(--forest); border-color: var(--lime); }
.map-view { margin: 18px 0 0; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); padding: 18px; }
.map-view img { margin: 0 auto; max-height: 72vh; object-fit: contain; cursor: zoom-in; animation: fadeIn .5s; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.985); } }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; text-align: center; }
.location { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; margin-top: 56px; align-items: center; }
.location h3 { font-size: 1.6rem; color: var(--forest); }
.location iframe { width: 100%; height: 340px; border: 0; border-radius: 24px; box-shadow: var(--shadow); background: #ece8f3; }

/* ---------- plants ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.search { position: relative; flex: 1 1 260px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.filters input, .filters select { font: inherit; padding: 11px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); width: 100%; }
.search input { padding-left: 42px; }
.filters select { width: auto; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(143,95,224,.15); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: .9rem; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: .2s; }
.chips button.on { background: var(--forest); color: #fff; border-color: var(--forest); }
.plant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; }
.plant { position: relative; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.plant:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plant::after { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.plant-icon { position: absolute; right: 16px; top: 16px; font-size: 2rem; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, white); transition: transform .4s var(--ease); }
.plant:hover .plant-icon { transform: rotate(-10deg) scale(1.1); }
.plant h4 { margin: 4px 70px 0 0; font-size: 1.22rem; color: var(--forest); }
.plant .sci { font-style: italic; color: var(--muted); font-size: .9rem; }
.plant .note { font-size: .94rem; margin-bottom: 8px; padding-right: 60px; }
.plant .row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 5px; }
.plant .count { font-family: "Prompt", sans-serif; color: var(--green-700); font-weight: 700; font-size: 1.05rem; }
.badge { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); width: fit-content; }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- lesson ---------- */
.lesson { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.lesson-head { padding: 36px 40px 10px; background: radial-gradient(600px 200px at 100% 0, #ece2ff, transparent 70%); }
.lesson-head h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--forest); }
.pill { display: inline-block; background: var(--forest); color: var(--lime); border-radius: 999px; padding: 4px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.lesson-head p { color: var(--muted); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 30px 40px 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 60px; right: 60px; top: 52px; height: 3px; background: linear-gradient(90deg, var(--lime), var(--green-700)); }
.timeline li { position: relative; padding-top: 52px; }
.timeline li::before { content: ""; position: absolute; top: 12px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 4px solid var(--green-500); box-shadow: 0 0 0 6px rgba(214,196,255,.25); }
.timeline b { display: block; font-family: "Prompt", sans-serif; font-size: 1.2rem; color: var(--green-700); }
.timeline em { display: block; font-style: normal; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.timeline span { font-size: .93rem; color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: var(--forest); color: #e3d9f7; padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.footer-title { font-family: "Prompt", sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; margin: 0; }
.footer p { margin: 4px 0; }
.footer .small { color: #b3a3d6; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20, 8, 40, .94); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .25s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 86vh; background: #fff; border-radius: 12px; }
.lb-cap { color: #efe9fb; margin-top: 12px; text-align: center; }
.lb-close { position: absolute; top: 12px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .area-cards { grid-template-columns: 1fr 1fr; }
  .map3d-shell { grid-template-columns: 1fr; }
  .map3d-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .fly-btns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid, .tables-2, .location { grid-template-columns: 1fr; gap: 36px; }
  .geo-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; padding: 20px 28px 32px; }
  .timeline::before { left: 40px; right: auto; top: 30px; bottom: 40px; width: 3px; height: auto; }
  .timeline li { padding: 0 0 0 46px; }
  .timeline li::before { top: 2px; }
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: rgba(98,70,156,.97); padding: 10px 4vw 18px; }
  .nav.open { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .area-cards, .geo-grid { grid-template-columns: 1fr; }
  .map3d-panel { grid-template-columns: 1fr; }
  .map3d-stage { height: 64vh; min-height: 380px; }
  .lesson-head { padding: 28px 24px 6px; }
  .sec-head { gap: 14px; }
  .lb-row { grid-template-columns: 96px 1fr 56px; }
}

/* ---------- /* ---------- purple & white theme ---------- */
/* hero: duotone — satellite in greyscale under a royal-violet wash */
.hero { background: #3d2378; }
.hero-bg { background: url("../images/satellite.jpg") center / cover no-repeat; filter: grayscale(1) contrast(1.1) brightness(1.05); z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  radial-gradient(800px 480px at 88% 18%, rgba(255, 255, 255, .22), transparent 60%),
  linear-gradient(105deg, rgba(52, 28, 108, .95) 0%, rgba(98, 60, 190, .82) 45%, rgba(160, 128, 240, .40) 100%); }
.btn.glow { background: linear-gradient(135deg, #ffffff, #e9dfff); color: #3d2378; box-shadow: 0 10px 40px -8px rgba(255, 255, 255, .55); }
.btn.glow:hover { box-shadow: 0 16px 50px -6px rgba(255, 255, 255, .75); }

/* top bar turns into white glass once scrolled */
.topbar.solid { background: rgba(255, 255, 255, .88); box-shadow: 0 6px 30px rgba(61, 35, 120, .12); }
.topbar.solid .brand { color: #3d2378; }
.topbar.solid .nav a { color: #4a3a6e; }
.topbar.solid .nav a:hover { color: #3d2378; background: #f1ebff; }
.topbar.solid .nav a.active, .nav a.active { color: #fff; background: linear-gradient(135deg, #6b42c8, #9b7bf0); box-shadow: 0 6px 18px -6px rgba(107, 66, 200, .7); }
.topbar.solid .nav-toggle span { background: #3d2378; }
@media (max-width: 900px) {
  .nav { background: rgba(255, 255, 255, .98) !important; box-shadow: 0 16px 30px rgba(61, 35, 120, .15); }
  .nav a { color: #3d2378 !important; }
}

/* sections */
.section.tinted { background: linear-gradient(180deg, #f4effe 0%, #fdfcff 100%); }
.sec-head h2 { background: linear-gradient(100deg, #3d2378 25%, #7b52d8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 3D-map section: light lavender instead of dark */
.section.dark { color: var(--ink); background:
  radial-gradient(900px 480px at 85% 0%, rgba(155, 123, 240, .22), transparent 60%),
  radial-gradient(700px 420px at 0% 100%, rgba(155, 123, 240, .12), transparent 60%),
  linear-gradient(180deg, #f1ebff, #fdfcff); }
.dark .sec-head h2 { background: linear-gradient(100deg, #3d2378 25%, #7b52d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark .kicker { color: var(--green-700); }
.dark .sec-num { -webkit-text-stroke-color: var(--green-500); }
.dark .sec-sub { color: var(--muted); }
.map3d-shell { background: #fff; border: 1px solid #e4dbfa; box-shadow: 0 40px 100px -30px rgba(61, 35, 120, .38); }
.map3d-panel { background: linear-gradient(165deg, #7b52d8 0%, #4a2a96 100%); color: #fff; }
.panel-label { color: #e9dfff; }

.table th { background: linear-gradient(90deg, #4a2a96, #7b52d8); }
.footer { background: linear-gradient(135deg, #3d2378 0%, #6b42c8 100%); color: #ece4ff; }
.footer .small { color: #cdbdf5; }
school logo ---------- */
.logo-badge { background: #fff; padding: 3px; overflow: hidden; }
.logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark.logo-badge { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(214,196,255,.8), 0 0 22px rgba(214,196,255,.45); }
.hero-logo { display: block; width: 116px; height: 116px; object-fit: contain; background: #fff; border-radius: 50%; padding: 10px; margin: 0 0 22px;
  box-shadow: 0 0 0 4px rgba(214,196,255,.85), 0 0 0 10px rgba(255,255,255,.12), 0 18px 50px -10px rgba(0,0,0,.55); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { display: block; width: 64px; height: 64px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(214,196,255,.7); }
@media (max-width: 640px) { .hero-logo { width: 88px; height: 88px; padding: 7px; } }

/* ---------- /* ---------- /* ---------- v5: bright nature — white, lavender & leaf green ---------- */
:root { --leaf: #3f9a5a; --leaf-2: #6cc488; --violet: #5a2bc9; --violet-2: #8a5cf0; --plum: #3d2378; }

/* top bar: white glass always (hero is light now) */
.topbar, .topbar.solid { background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 4px 24px rgba(61, 35, 120, .08); }
.brand { color: var(--plum); }
.brand small { color: #6b5a8e; opacity: 1; }
.nav a { color: #4a3a6e; }
.nav a:hover { color: var(--plum); background: #f1ebff; }
.nav a.active, .topbar.solid .nav a.active { color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-2)); box-shadow: 0 6px 18px -6px rgba(90, 43, 201, .6); }
.nav-toggle span { background: var(--plum); }
.brand-mark.brand-logo { width: 38px; height: 50px; border-radius: 0; background: none; box-shadow: none; padding: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-rspg { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1.5px #e4dbfa, 0 2px 8px rgba(61, 35, 120, .12); margin-left: -4px; }
.brand-rspg img { width: 70%; }

/* hero */
.hero { color: var(--ink); background: linear-gradient(180deg, #f3edff 0%, #fbf9ff 45%, #f2fbf4 100%); padding: 120px 0 170px; }
.hero::before, .hero::after { display: none; }
.hero-bg { display: none; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-leaves { z-index: 1; }
.leaf { opacity: .5; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 48px; }
.eyebrow { color: var(--leaf); border: 1px solid rgba(63, 154, 90, .35); background: rgba(108, 196, 136, .12); }
.h1-small { color: var(--plum); opacity: 1; font-weight: 400; }
.h1-big { background: linear-gradient(100deg, var(--plum) 0%, var(--violet) 45%, var(--violet-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: none; }
.h1-big em { -webkit-text-fill-color: var(--leaf); color: var(--leaf); }
.lead { color: #4a3f60; opacity: 1; font-weight: 400; }
.btn.glow { background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; box-shadow: 0 12px 30px -10px rgba(90, 43, 201, .65); }
.btn.glow:hover { box-shadow: 0 18px 40px -10px rgba(90, 43, 201, .8); }
.btn.ghost { background: #fff; color: var(--plum); border-color: #ddd0fb; backdrop-filter: none; }
.btn.ghost:hover { background: #f6f1ff; border-color: var(--violet-2); }
.stat { background: rgba(255, 255, 255, .85); border: 1px solid #ebe3fb; border-top: 3px solid var(--leaf-2); box-shadow: 0 12px 30px -16px rgba(61, 35, 120, .3); backdrop-filter: blur(6px); }
.stat b { color: var(--violet); }
.stat span { color: #6b5a8e; }
.scroll-hint { border-color: rgba(61, 35, 120, .3); }
.scroll-hint span { background: var(--violet); }

/* emblem: school crest on white medallion + RSPG crest */
.hero-emblem { position: relative; margin: 0; display: grid; justify-items: center; gap: 24px; }
.hero-emblem::before { display: none; }
.emblem-halo { position: relative; width: min(330px, 100%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .7), 0 0 0 11px #e4dbfa, 0 0 0 34px rgba(138, 92, 240, .07), 0 30px 70px -20px rgba(61, 35, 120, .35); }
.emblem-halo::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1.5px dashed rgba(138, 92, 240, .3); }
.emblem-school { width: 58%; filter: drop-shadow(0 10px 14px rgba(61, 35, 120, .18)); animation: emblemFloat 6s ease-in-out infinite; }
.emblem-rspg { position: absolute; top: -6px; left: max(0px, calc(50% - 220px)); width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 0 0 1.5px #e4dbfa, 0 14px 30px -10px rgba(61, 35, 120, .35); }
.emblem-rspg img { width: 64%; }
.hero-emblem figcaption { margin: 0; color: var(--plum); font-family: "Prompt", sans-serif; font-weight: 500; font-size: .95rem;
  padding: 8px 20px; border-radius: 999px; background: #fff; border: 1px solid #e4dbfa; box-shadow: 0 8px 20px -12px rgba(61, 35, 120, .4); }
.hero-emblem figcaption b { color: var(--leaf); }
@keyframes emblemFloat { 50% { transform: translateY(-8px); } }

/* project sign band (About) — light card */
.project-band { margin-top: 64px; display: grid; grid-template-columns: 1.15fr .85fr; border-radius: 28px; overflow: hidden; background: #fff;
  border: 1px solid #ebe3fb; box-shadow: 0 30px 70px -30px rgba(61, 35, 120, .35); }
.project-photo { margin: 0; position: relative; min-height: 320px; }
.project-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.project-info { position: relative; padding: 38px 40px; color: var(--ink); background: linear-gradient(160deg, #fbf9ff, #f3edff); }
.project-info .kicker { color: var(--leaf); }
.project-info h3 { color: var(--plum); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 6px 0 12px; }
.project-info .kicker, .project-info h3 { padding-right: 84px; }
.project-info p { margin: 0 0 10px; font-size: .98rem; color: #4a3f60; }
.project-info b { color: var(--plum); }
.project-rspg { position: absolute; top: 26px; right: 30px; width: 64px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1.5px #e4dbfa, 0 8px 20px -10px rgba(61, 35, 120, .4); }
.member-code { display: inline-grid; margin-top: 10px; padding: 10px 18px; border: 1.5px solid #d9cbfb; border-radius: 14px; background: #fff; line-height: 1.4; }
.member-code span, .member-code small { font-size: .8rem; color: #6b5a8e; }
.member-code b { font-family: "Prompt", sans-serif; font-size: 1.35rem; color: var(--violet); }

/* site-wide accents: purple headings, leaf-green kickers */
.kicker, .dark .kicker { color: var(--leaf); }
.sec-num, .dark .sec-num { -webkit-text-stroke-color: var(--violet-2); opacity: .45; }
.footer { border-top: 0; }
.footer-logo { width: 54px; height: auto; flex: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }

@media (max-width: 900px) {
  .hero { padding: 100px 0 150px; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-emblem { order: -1; }
  .emblem-halo { width: 190px; }
  .emblem-rspg { width: 74px; height: 74px; left: calc(50% - 140px); top: -4px; }
  .hero-emblem figcaption { font-size: .82rem; }
  .project-band { grid-template-columns: 1fr; }
  .project-photo { min-height: 220px; }
}
@media (max-width: 640px) {
  .project-info { padding: 28px 24px; }
  .project-rspg { width: 50px; top: 20px; right: 20px; }
  .project-info .kicker, .project-info h3 { padding-right: 60px; }
  .brand-rspg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .emblem-school { animation: none; } }@media (max-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } .hero-text { min-width: 0; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- equal-size crests (school + RSPG) ---------- */
.brand-medal { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 1.5px #e4dbfa, 0 3px 10px rgba(61, 35, 120, .14); }
.brand-medal img { width: 76%; height: 76%; object-fit: contain; }
.brand-medal + .brand-medal { margin-left: -6px; }
.emblem-pair { display: flex; justify-content: center; align-items: center; gap: 26px; }
.emblem-medal { position: relative; width: min(220px, 42vw); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .75), 0 0 0 9px #e4dbfa, 0 0 0 26px rgba(138, 92, 240, .06), 0 26px 60px -20px rgba(61, 35, 120, .35);
  animation: emblemFloat 6s ease-in-out infinite; }
.emblem-medal + .emblem-medal { animation-delay: -3s; }
.emblem-medal::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1.5px dashed rgba(138, 92, 240, .3); }
.emblem-medal img { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(61, 35, 120, .15)); }
@media (max-width: 900px) { .emblem-pair { gap: 18px; } .emblem-medal { width: 140px; } }
@media (max-width: 640px) { .brand-medal { width: 40px; height: 40px; } .brand-medal + .brand-medal { display: grid; } }
@media (prefers-reduced-motion: reduce) { .emblem-medal { animation: none; } }

/* ---------- crests without circles: plain, equal height ---------- */
.brand-medal { width: auto; height: 46px; background: none; box-shadow: none; border-radius: 0; }
.brand-medal img { width: auto; height: 100%; object-fit: contain; }
.brand-medal + .brand-medal { margin-left: 4px; }
.emblem-medal { width: auto; height: 250px; aspect-ratio: auto; background: none; box-shadow: none; border-radius: 0; }
.emblem-medal::before { display: none; }
.emblem-medal img { width: auto; height: 100%; filter: drop-shadow(0 12px 16px rgba(61, 35, 120, .2)); }
.emblem-pair { gap: 48px; }
@media (max-width: 900px) { .emblem-medal { height: 150px; width: auto; } .emblem-pair { gap: 30px; } }
@media (max-width: 640px) { .brand-medal { height: 40px; width: auto; } }
.brand-medal { display: block; }
.brand-medal img { height: 46px; width: auto; max-width: none; }
.emblem-medal { display: block; }
.emblem-medal img { height: 250px; width: auto; max-width: none; }
@media (max-width: 900px) { .emblem-medal img { height: 150px; } }
@media (max-width: 640px) { .brand-medal img { height: 40px; } }

/* ---------- stat cards v2: number + unit, icon ---------- */
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; max-width: 760px; }
.stat { position: relative; padding: 16px 18px 16px; border-radius: 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-ic { font-style: normal; font-size: 1.05rem; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f1ebff; margin-bottom: 8px; }
.stat-val { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.stat-val b { font-family: "Prompt", sans-serif; font-weight: 700; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.15; color: var(--violet); letter-spacing: -.01em; white-space: nowrap; }
.stat-val small { font-size: .82rem; font-weight: 600; color: var(--leaf); }
.stat span { font-size: .85rem; line-height: 1.4; color: #6b5a8e; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }

/* ---------- drag-mode toggle (ย้าย / หมุน) ---------- */
.drag-mode .panel-label { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.14); }
.seg button { border: 0; border-radius: 10px; padding: 10px 8px; font: 600 .95rem "Prompt", sans-serif; color: #f1eaff; background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { background: rgba(255,255,255,.12); }
.seg button.on { background: #fff; color: #4a2a96; box-shadow: 0 4px 12px rgba(30,10,70,.25); }
.mode-pan canvas { cursor: grab; }
.mode-pan canvas:active { cursor: grabbing; }

/* ---------- footer v2 (ธรรมชาติ สดใส) ---------- */
.footer { background: none; padding: 0; color: #4a3a6e; position: relative; margin-top: 40px; }
.footer-wave { display: block; width: 100%; height: 90px; }
.footer-body { background: linear-gradient(180deg, #a9dcb7 0%, #eaf7ee 38%, #f6f1ff 100%); padding: 10px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding: 30px 0 40px; align-items: start; }
.footer-crests { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.footer-crests img { height: 72px; width: auto; filter: drop-shadow(0 6px 12px rgba(61,35,120,.18)); }
.footer .footer-title { font-family: "Prompt", sans-serif; font-weight: 700; font-size: 1.35rem; margin: 0 0 6px;
  background: linear-gradient(90deg, #5a2bc9, #8a5cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer .footer-sub { margin: 0; color: #5d4f7c; line-height: 1.7; font-size: .95rem; }
.footer-col h4 { margin: 4px 0 14px; font: 600 .95rem "Prompt", sans-serif; color: #2f7a4a; letter-spacing: .02em; }
.footer-col a { display: block; width: fit-content; padding: 4px 0; color: #4a3a6e; text-decoration: none; transition: color .2s, transform .2s; }
.footer-col a::before { content: "›"; margin-right: 8px; color: #6cc488; font-weight: 700; }
.footer-col a:hover { color: #5a2bc9; transform: translateX(3px); }
.footer-col p { margin: 0 0 14px; color: #5d4f7c; line-height: 1.7; font-size: .95rem; }
.footer-chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; color: #5a2bc9;
  font: 600 .88rem "Prompt", sans-serif; box-shadow: 0 4px 14px rgba(90,43,201,.12); border: 1px solid #e4d9ff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 18px 0 26px;
  border-top: 1px solid rgba(90,43,201,.14); font-size: .85rem; color: #7a6c98; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-wave { height: 56px; }
}
.footer .footer-brand { display: block; }
.footer-crests img { border-radius: 0; box-shadow: none; width: auto; }

/* ---------- hero title v3 (ไม่มีคำว่าเพชรจริก) ---------- */
.h1-main { display: block; font-family: "Prompt", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 5.8vw, 4.9rem);
  line-height: 1.12; letter-spacing: -.005em; padding-bottom: .06em;
  background: linear-gradient(100deg, #3d2378 0%, #5a2bc9 50%, #8a5cf0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1-tag { position: relative; display: inline-flex; align-items: center; gap: .45em; margin-top: 18px;
  font-family: "Prompt", sans-serif; font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.75rem); color: #2f7a4a;
  padding: .32em .95em .32em .7em; border-radius: 999px;
  background: linear-gradient(90deg, rgba(108,196,136,.22), rgba(108,196,136,.06)); box-shadow: inset 0 0 0 1px rgba(63,154,90,.22); }
.h1-tag i { font-style: normal; font-size: 1.05em; }
.hero .lead { margin-top: 22px; max-width: 34em; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.8; color: #574a74; }
@media (max-width: 560px) { .h1-main br { display: none; } }

/* ---------- on-map controls (มือถือใช้ง่าย) ---------- */
.map-ctrl, .map-tools { position: absolute; z-index: 6; display: flex; gap: 4px; padding: 5px; border-radius: 16px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(40,20,90,.18); }
.map-ctrl { top: 14px; left: 14px; }
.map-ctrl button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px;
  background: transparent; color: #4a2a96; font: 600 1rem "Prompt", sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.map-ctrl button.on { background: linear-gradient(135deg, #7b52d8, #5a2bc9); color: #fff; box-shadow: 0 4px 12px rgba(90,43,201,.35); }
.map-tools { right: 14px; bottom: 14px; flex-direction: column; }
.map-tools button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #4a2a96;
  font: 700 1.3rem/1 "Prompt", sans-serif; cursor: pointer; transition: background .2s; }
.map-tools button:hover, .map-ctrl button:not(.on):hover { background: #f1ebff; }
.map-tools button:active { background: #e4d9ff; }
.map-hint { position: absolute; z-index: 6; left: 50%; bottom: 18px; transform: translate(-50%, 10px); max-width: calc(100% - 100px);
  padding: 10px 16px; border-radius: 999px; background: rgba(40,20,90,.82); color: #fff; font: 500 .92rem "Prompt", sans-serif;
  text-align: center; pointer-events: none; opacity: 0; transition: opacity .3s, transform .3s; }
.map-hint.show { opacity: 1; transform: translate(-50%, 0); }
/* มือถือ: ซ่อนสวิตช์ซ้ำในแผงด้านล่าง (ใช้ปุ่มบนแผนที่แทน) และให้แผนที่สูงพอดีจอ */
/* ใช้สวิตช์บนแผนที่แทนสวิตช์ในแผง */
.map3d-panel .drag-mode { display: none; }
@media (max-width: 900px) {
  .map3d-stage { height: 70vh; min-height: 420px; }
  .map-hint { bottom: 14px; font-size: .85rem; max-width: calc(100% - 90px); left: calc(50% - 26px); }
}
