:root {
  --purple: #6f2c91;
  --purple-deep: #351447;
  --purple-soft: #f0e7f5;
  --gold: #b28a35;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e4e4e8;
  --paper: #f5f5f7;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 22px;
  --shadow: 0 18px 55px rgba(32, 23, 39, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Noto Sans Thai", "Leelawadee UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
main { overflow: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; border-radius: 12px; background: var(--white); color: var(--purple-deep); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #a95dcc; outline-offset: 4px; }
.shell { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.utility-inner, .nav-row, .ribbon-inner { display: flex; align-items: center; justify-content: space-between; }

.utility-bar { background: var(--purple-deep); color: rgba(255,255,255,.82); font-size: 12px; }
.utility-inner { min-height: 34px; }
.utility-inner p { margin: 0; }
.utility-inner div { display: flex; gap: 24px; }
.utility-inner a:hover { color: #fff; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(29,29,31,.08); background: rgba(245,245,247,.88); backdrop-filter: saturate(180%) blur(20px); }
.nav-row { min-height: 84px; gap: 32px; }
.brand img { width: 214px; height: auto; }
.nav-row nav { display: flex; gap: clamp(20px, 3vw, 42px); margin-left: auto; }
.nav-row nav a { position: relative; padding: 12px 0; font-size: 14px; font-weight: 650; }
.nav-row nav a:after { content: ""; position: absolute; right: 0; bottom: 5px; left: 0; height: 2px; background: var(--purple); transform: scaleX(0); transition: transform .22s ease; }
.nav-row nav a:hover { color: var(--purple); }
.nav-row nav a:hover:after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; background: var(--white); box-shadow: 0 6px 20px rgba(32,23,39,.06); color: var(--purple); font-size: 14px; font-weight: 750; }
.nav-cta:hover { background: var(--purple); color: var(--white); }
.menu-toggle { display: none; }

.hero { padding: 48px 0 34px; }
.hero-card { display: grid; grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr); align-items: stretch; min-height: 590px; padding: 18px; border: 1px solid rgba(29,29,31,.06); border-radius: 32px; background: var(--white); box-shadow: var(--shadow); }
.hero-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(38px, 5vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.eyebrow:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.eyebrow small { color: #8a8490; font: inherit; font-size: 10px; letter-spacing: .14em; }
.hero h1 { margin: 22px 0; font-size: clamp(46px, 5vw, 72px); font-weight: 680; letter-spacing: -.045em; line-height: 1.12; }
.hero-copy > p { max-width: 540px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; padding: 0 23px; border-radius: 999px; font-size: 14px; font-weight: 750; transition: transform .22s ease, background .22s ease, color .22s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--purple); color: #fff; box-shadow: 0 10px 28px rgba(111,44,145,.2); }
.button-primary:hover { background: var(--purple-deep); }
.text-link { color: var(--purple); font-size: 14px; font-weight: 750; }
.text-link span { display: inline-block; margin-left: 8px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-visual { position: relative; overflow: hidden; margin: 0; min-height: 100%; border-radius: var(--radius-md); background: #e9e7ec; }
.hero-visual:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28,13,37,.62)); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; min-height: 554px; object-fit: cover; }
.hero-visual figcaption { position: absolute; z-index: 2; right: 28px; bottom: 24px; left: 28px; display: flex; align-items: end; justify-content: space-between; gap: 22px; color: #fff; }
.hero-visual figcaption span { font-size: 11px; letter-spacing: .12em; opacity: .82; }
.hero-visual figcaption strong { max-width: 280px; text-align: right; font-size: 16px; line-height: 1.45; }
.slider-controls { position: absolute; z-index: 3; top: 18px; right: 18px; display: flex; gap: 8px; }
.slider-controls button { width: 43px; height: 43px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 5px 16px rgba(0,0,0,.08); cursor: pointer; font-size: 17px; }
.slider-controls button:hover { background: var(--purple); color: #fff; }

.news-ribbon { padding: 12px 0 0; }
.ribbon-inner { min-height: 64px; justify-content: flex-start; gap: 22px; padding: 0 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.7); }
.ribbon-label { color: var(--purple); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.ribbon-inner a { overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ribbon-inner a:hover { color: var(--purple); }
.ribbon-date { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }

.section { padding: 104px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 38px; }
.section-heading h2, .events-intro h2, .impact h2, .community-copy h2 { margin: 14px 0 0; font-size: clamp(36px, 4vw, 56px); font-weight: 680; letter-spacing: -.04em; line-height: 1.17; }
.view-all, .read-link { display: inline-flex; align-items: center; gap: 11px; color: var(--purple); font-size: 14px; font-weight: 750; }
.view-all span, .read-link span { transition: transform .2s ease; }
.view-all:hover span, .read-link:hover span { transform: translateX(4px); }

.stories { background: var(--paper); }
.cards-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr); gap: 24px; }
.story-card { overflow: hidden; border: 1px solid rgba(29,29,31,.06); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 12px 38px rgba(32,23,39,.05); transition: transform .25s ease, box-shadow .25s ease; }
.story-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(32,23,39,.1); }
.story-card-featured { grid-row: span 2; }
.story-image { display: block; overflow: hidden; background: #e9e7ec; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.story-card:hover .story-image img { transform: scale(1.025); }
.story-card-featured .story-image { height: 420px; }
.story-card:not(.story-card-featured) { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 226px; }
.story-card:not(.story-card-featured) .story-image { height: 100%; }
.story-body { display: flex; align-items: flex-start; flex-direction: column; padding: 26px; }
.story-card-featured .story-body { padding: 32px 34px 34px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--muted); font-size: 12px; }
.story-meta span { color: var(--purple); font-weight: 800; letter-spacing: .04em; }
.story-card h3 { display: -webkit-box; overflow: hidden; margin: 12px 0 18px; font-size: 21px; line-height: 1.45; letter-spacing: -.015em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.story-card-featured h3 { margin-top: 14px; font-size: clamp(27px, 2.5vw, 39px); line-height: 1.32; -webkit-line-clamp: 2; }
.story-card h3 a:hover { color: var(--purple); }
.story-card p { display: -webkit-box; overflow: hidden; margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.story-card .read-link { margin-top: auto; }

.events { background: #ececf0; }
.events-layout { display: grid; grid-template-columns: minmax(270px, .62fr) minmax(0, 1.38fr); gap: clamp(46px, 7vw, 94px); }
.events-intro { position: sticky; top: 132px; align-self: start; }
.events-intro p { max-width: 400px; margin: 24px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.button-outline { border: 1px solid rgba(111,44,145,.35); background: rgba(255,255,255,.58); color: var(--purple); }
.button-outline:hover { border-color: var(--purple); background: var(--purple); color: #fff; }
.event-list { display: grid; gap: 16px; }
.event-card { display: grid; grid-template-columns: 82px minmax(0, 1fr) 32px; align-items: center; gap: 22px; min-height: 154px; padding: 24px; border: 1px solid rgba(29,29,31,.05); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 10px 32px rgba(32,23,39,.04); transition: transform .22s ease, box-shadow .22s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(32,23,39,.09); }
.event-card time, .event-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 82px; height: 92px; border-radius: 18px; background: var(--purple-soft); color: var(--purple); }
.event-card time strong { font-size: 38px; font-weight: 620; line-height: 1; letter-spacing: -.05em; }
.event-card time span { margin-top: 7px; font-size: 12px; font-weight: 700; }
.event-placeholder { font-size: 15px; font-weight: 850; letter-spacing: .08em; }
.event-type { color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.event-card h3 { display: -webkit-box; overflow: hidden; margin: 7px 0; font-size: 20px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.event-card p { overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.event-arrow { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--paper); color: var(--purple); transition: transform .2s ease, background .2s ease, color .2s ease; }
.event-card:hover .event-arrow { background: var(--purple); color: #fff; transform: translate(2px,-2px); }

.impact { background: var(--paper); }
.impact-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; margin-bottom: 40px; }
.impact-heading .eyebrow { grid-column: 1 / -1; }
.impact-heading h2 { margin: 0; }
.impact-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.impact-bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); gap: 20px; }
.impact-card { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; padding: 30px; border: 1px solid rgba(29,29,31,.06); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 12px 38px rgba(32,23,39,.05); transition: transform .24s ease, box-shadow .24s ease; }
.impact-card:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(32,23,39,.1); }
.impact-card > span, .impact-card-photo span { color: var(--purple); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.impact-card h3 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; }
.impact-card p { max-width: 470px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.impact-card > strong { position: absolute; top: 26px; right: 26px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--paper); color: var(--purple); }
.impact-card-wide { grid-column: span 7; }
.impact-card-purple { grid-column: span 5; background: var(--purple-deep); color: #fff; }
.impact-card-purple > span, .impact-card-purple p { color: rgba(255,255,255,.68); }
.impact-card-purple > strong { background: rgba(255,255,255,.12); color: #fff; }
.impact-card-photo { grid-column: span 12; min-height: 390px; padding: 0; color: #fff; }
.impact-card-photo:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(30,13,40,.78)); }
.impact-card-photo img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.impact-card-photo div { position: absolute; z-index: 2; right: 32px; bottom: 30px; left: 32px; }
.impact-card-photo span { color: rgba(255,255,255,.7); }
.impact-card-photo h3 { margin-top: 8px; }

.community { padding-top: 40px; background: var(--paper); }
.community-card { display: grid; grid-template-columns: 1.08fr .92fr; align-items: stretch; overflow: hidden; min-height: 520px; padding: 18px; border: 1px solid rgba(29,29,31,.06); border-radius: 32px; background: var(--white); box-shadow: var(--shadow); }
.community-photo { overflow: hidden; border-radius: var(--radius-md); }
.community-photo img { width: 100%; height: 100%; object-fit: cover; }
.community-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(40px, 5vw, 76px); }
.community-copy > p { max-width: 500px; margin: 24px 0 32px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.community-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-quiet { background: var(--purple-soft); color: var(--purple-deep); }
.button-quiet:hover { background: #e5d5ed; }
.cta-band { padding: 0 0 78px; background: var(--paper); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 54px 58px; border-radius: var(--radius-lg); background: var(--purple); }
.cta-inner span { color: rgba(255,255,255,.68); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.cta-inner h2 { margin: 9px 0 0; font-size: clamp(28px, 3vw, 42px); font-weight: 650; letter-spacing: -.03em; }
.button-white { flex-shrink: 0; background: #fff; color: var(--purple-deep); }
.button-white:hover { background: #f3edf6; }

.footer { padding: 76px 0 28px; background: #17151a; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 66px; }
.footer-brand img { width: 232px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; }
.footer h3 { margin: 0 0 18px; color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: .11em; }
.footer-grid > div:not(.footer-brand) { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.footer a, .footer p { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.7; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 66px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.4); font-size: 11px; }

@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy, .hero-visual { animation: reveal .42s ease both; }

@media (max-width: 1080px) {
  .hero-card { grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); }
  .story-card:not(.story-card-featured) { grid-template-columns: 150px minmax(0, 1fr); }
  .story-body { padding: 22px; }
}

@media (max-width: 980px) {
  .nav-row nav { position: absolute; top: 100%; right: 20px; left: 20px; display: none; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); flex-direction: column; }
  .nav-row nav.is-open { display: flex; }
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 50%; background: var(--white); flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
  .menu-toggle span { display: block; width: 100%; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .nav-cta { margin-left: auto; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-copy { min-height: 420px; }
  .hero-visual img { min-height: 480px; aspect-ratio: 16 / 10; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .story-card-featured { grid-column: 1 / -1; grid-row: auto; }
  .story-card:not(.story-card-featured) { display: block; min-height: 0; }
  .story-card:not(.story-card-featured) .story-image { height: 260px; }
  .events-layout { grid-template-columns: 1fr; }
  .events-intro { position: static; }
  .impact-heading { grid-template-columns: 1fr; }
  .impact-heading .eyebrow { grid-column: auto; }
  .impact-card-wide, .impact-card-purple { grid-column: span 6; }
  .community-card { grid-template-columns: 1fr; }
  .community-photo { min-height: 440px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 32px, 1240px); }
  .utility-inner p { display: none; }
  .utility-inner { justify-content: flex-end; }
  .nav-row { min-height: 70px; }
  .brand img { width: 168px; }
  .nav-cta { display: none; }
  .hero { padding-top: 24px; }
  .hero-card { min-height: 0; padding: 10px; border-radius: 25px; }
  .hero-copy { min-height: 0; padding: 36px 22px 34px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-visual { border-radius: 18px; }
  .hero-visual img { min-height: 330px; aspect-ratio: 4 / 3; }
  .hero-visual figcaption { right: 18px; bottom: 17px; left: 18px; }
  .hero-visual figcaption strong { text-align: left; }
  .slider-controls { top: 12px; right: 12px; }
  .slider-controls button { width: 40px; height: 40px; }
  .ribbon-inner { align-items: flex-start; flex-wrap: wrap; padding: 16px 18px; gap: 7px 14px; }
  .ribbon-inner a { width: calc(100% - 58px); }
  .ribbon-date { margin-left: 0; }
  .section { padding: 76px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .story-card-featured .story-image { height: 300px; }
  .story-card:not(.story-card-featured) .story-image { height: 250px; }
  .story-card-featured .story-body, .story-body { padding: 24px; }
  .story-card-featured h3 { font-size: 25px; -webkit-line-clamp: 3; }
  .event-card { grid-template-columns: 66px minmax(0, 1fr) 28px; gap: 14px; padding: 18px; }
  .event-card time, .event-placeholder { width: 66px; height: 76px; border-radius: 15px; }
  .event-card time strong { font-size: 32px; }
  .event-card h3 { font-size: 17px; }
  .event-card p { display: none; }
  .impact-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .impact-card-wide, .impact-card-purple, .impact-card-photo { grid-column: auto; min-height: 250px; }
  .impact-card-photo, .impact-card-photo img { min-height: 310px; }
  .community { padding-top: 12px; }
  .community-card { padding: 10px; border-radius: 25px; }
  .community-photo { min-height: 300px; border-radius: 18px; }
  .community-copy { padding: 36px 22px 30px; }
  .community-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .cta-band { padding-bottom: 58px; }
  .cta-inner { align-items: flex-start; flex-direction: column; padding: 38px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 26px; }
  .footer-brand { grid-column: 1 / 3; }
  .footer-grid > div:last-child { grid-column: 1 / 3; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

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