:root {
  --paper: #f7f4ee;
  --card: #ffffff;
  --ink: #18212e;
  --ink-2: #444e5c;
  --muted: #6d7584;
  --line: #e4ded3;
  --accent: #0d6b61;
  --accent-dark: #09544c;
  --accent-wash: #e3f0ed;
  --warm: #c46a2b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 33, 46, .05), 0 10px 30px rgba(24, 33, 46, .07);
  --serif: "Fraunces", "Noto Sans Myanmar", Georgia, serif;
  --sans: "Inter", "Noto Sans Myanmar", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body.lang-my { line-height: 1.95; font-size: 16px; }
body.lang-my h1, body.lang-my h2, body.lang-my h3, body.lang-my .brand { font-family: "Noto Sans Myanmar", var(--sans); line-height: 1.6; letter-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
h1, h2, h3 { margin: 0; color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: rgba(24, 33, 46, .05); }
.lang-switch { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; background: var(--card); white-space: nowrap; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .lang-switch { margin-left: auto; }
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; margin: 0; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
}

/* hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; font-size: 15px; margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 7vw, 76px); line-height: 1.02; letter-spacing: -.025em; }
.headline { font-size: clamp(19px, 2.2vw, 23px); color: var(--accent); font-weight: 600; margin: 16px 0 0; line-height: 1.4; }
.intro { font-size: 18px; color: var(--ink-2); margin: 18px 0 28px; max-width: 34em; }
.hero-photo { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--warm); border-radius: 22px; }
.hero-photo img, .initials { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); background: var(--accent-wash); }
.initials { display: grid; place-items: center; font-family: var(--serif); font-size: 120px; color: var(--accent); }
@media (max-width: 860px) {
  .hero { padding: 40px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { order: -1; width: min(300px, 78%); justify-self: start; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: 56px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--card); padding: 20px 22px; }
.stats dt { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

/* sections */
.block { padding: 64px 0; border-top: 1px solid var(--line); }
.block-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.block h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -.015em; line-height: 1.2; }
@media (max-width: 860px) { .block { padding: 48px 0; } .block-grid { grid-template-columns: 1fr; gap: 20px; } }
.prose { max-width: 40em; color: var(--ink-2); font-size: 18px; }
.prose p { margin: 0 0 1em; }
.lead { color: var(--ink-2); margin: 0 0 22px; max-width: 38em; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 0 0 30px; position: relative; }
.timeline li + li { padding-top: 30px; border-top: 1px dashed var(--line); }
.tl-when { color: var(--muted); font-weight: 600; font-size: 15px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.tl-what h3 { font-size: 20px; font-weight: 700; line-height: 1.35; }
.tl-org { margin: 4px 0 0; color: var(--accent); font-weight: 600; }
.tl-org span { color: var(--muted); font-weight: 500; }
.tl-desc { color: var(--ink-2); margin-top: 8px; }
.tl-desc p { margin: 0 0 .6em; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--card); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; font-weight: 500; }

.contact { background: var(--card); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .15s, transform .15s; min-width: 0; }
.contact-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.c-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.contact-card small { display: block; color: var(--muted); font-size: 13px; }
.contact-card strong { display: block; font-weight: 600; overflow-wrap: anywhere; }

.foot { padding: 28px 0 36px; color: var(--muted); font-size: 14.5px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.nf { padding: 120px 0; text-align: center; }
.nf h1 { font-family: var(--serif); font-size: 80px; }

/* wide sections: heading above, content across the full width */
.block-grid.wide { grid-template-columns: 1fr; gap: 28px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* attachments */
.ph { display: block; position: relative; overflow: hidden; border-radius: 10px; background: var(--accent-wash); cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ph:hover img { transform: scale(1.03); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumbs .ph { width: 112px; height: 84px; }
.pdfs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pdf-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.pdf-link:hover { border-color: var(--accent); color: var(--accent); }

/* events: photo mosaic beside the story */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.event { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.event:not(:has(.ev-photos)) { grid-template-columns: 1fr; padding: 22px 24px; }
.ev-photos { display: grid; gap: 6px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 92px; }
.ev-photos .ph { border-radius: 10px; }
.ev-photos.n1 .ph { grid-column: span 6; grid-row: span 3; }
.ev-photos.n2 .ph { grid-column: span 3; grid-row: span 3; }
.ev-photos.n3 .ph:first-child { grid-column: span 4; grid-row: span 3; }
.ev-photos.n3 .ph:not(:first-child) { grid-column: span 2; grid-row: span 1; }
.ev-photos.n3 .ph:nth-child(2) { grid-row: span 2; }
.ev-photos.n4 .ph { grid-column: span 3; grid-row: span 2; }
.ev-photos.n5 .ph:nth-child(-n+2) { grid-column: span 3; grid-row: span 2; }
.ev-photos.n5 .ph:nth-child(n+3) { grid-column: span 2; grid-row: span 1; }
.more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(24, 33, 46, .55); color: #fff; font-weight: 700; font-size: 22px; }
.ev-text { padding: 6px 8px 6px 0; }
.ev-meta { margin: 0 0 6px; color: var(--warm); font-weight: 600; font-size: 14.5px; letter-spacing: .01em; }
.ev-text h3 { font-size: 22px; line-height: 1.3; }
@media (max-width: 860px) { .event { grid-template-columns: 1fr; gap: 16px; } .ev-text { padding: 0 6px 6px; } .ev-photos { grid-auto-rows: 64px; } }

/* certificates: card grid */
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.cert { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.cert-img { display: block; aspect-ratio: 4 / 3; border-radius: 0; background: #efeae1; }
.cert-img img { object-fit: contain; padding: 10px; }
.cert-blank { display: grid; place-items: center; color: var(--accent); text-decoration: none; }
.cert-body { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.cert-body h3 { font-size: 17px; line-height: 1.4; }
.cert-meta { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.cert-desc { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.cert-body .pdf-link { margin-top: 10px; }

/* reports: list */
.reports { list-style: none; margin: 0; padding: 0; }
.report { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; }
.report + .report { border-top: 1px dashed var(--line); }
.report:first-child { padding-top: 0; }
.rep-icon { width: 64px; height: 80px; border-radius: 10px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; }
.rep-img { width: 64px; height: 80px; }
.report h3 { font-size: 19px; line-height: 1.4; }
.report h3 a { color: var(--ink); text-decoration: none; }
.report h3 a:hover { color: var(--accent); }
.rep-meta { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.report .btn { margin-top: 10px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 16, 22, .94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(94vw, 1600px); max-height: 88vh; width: auto; height: auto; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* the big lines under the name */
.roles { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.roles li { border-left: 4px solid var(--warm); padding: 2px 0 2px 18px; }
.role-label { display: block; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--warm); }
.role-text { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.1vw, 36px); line-height: 1.18; color: var(--ink); letter-spacing: -.01em; margin-top: 2px; }
.role-text a { color: var(--accent); text-decoration: none; }
.role-text a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.role-arrow { font-family: var(--sans); font-size: .55em; margin-left: 6px; vertical-align: .35em; }
body.lang-my .role-label { letter-spacing: 0; }
body.lang-my .role-text { font-family: "Noto Sans Myanmar", var(--sans); line-height: 1.55; font-size: clamp(21px, 2.6vw, 30px); }
.hero .intro { margin-top: 24px; }
