/* TGM Nusantara — public site
   Palette taken from the community logo: teal ribbon, mint speech bubble, leaf green. */
:root {
  --ink: #133640;
  --ink-2: #44606A;
  --teal: #3FAFC3;
  --teal-d: #0F6E80;
  --teal-dd: #0B5867;
  --deep: #0F4C5C;
  --mint: #D6EFEC;
  --mint-50: #F0F8F7;
  --leaf: #7AB342;
  --leaf-d: #4A7A1B;
  --line: #D3E4E6;
  --bad: #B42318;
  --paper: #FFFFFF;
  --r: 12px;
  --wrap: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-d); }
a:hover { color: var(--teal-dd); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.muted { color: var(--ink-2); font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-2); }

/* ---------- type ---------- */
.h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.06; max-width: 22ch; }
.h2 { font-size: clamp(1.55rem, 1.15rem + 1.3vw, 2.15rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--ink-2); max-width: 60ch; margin-top: 1rem; }
.prose-lg { font-size: 1.15rem; line-height: 1.7; max-width: 62ch; }
.link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--leaf); padding-bottom: 1px; color: var(--ink); }
.link:hover { color: var(--teal-d); border-color: var(--teal-d); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: .9rem 1.35rem; border-radius: var(--r); border: 2px solid var(--teal-d);
  background: var(--teal-d); color: #fff; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--teal-dd); border-color: var(--teal-dd); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-d); }
.btn-ghost:hover { background: var(--mint); color: var(--teal-dd); border-color: var(--teal-dd); }
.btn-light { background: #fff; color: var(--deep); border-color: #fff; }
.btn-light:hover { background: var(--mint); border-color: var(--mint); color: var(--deep); }
.btn-sm { padding: .6rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.brand-txt small { font-size: .78rem; color: var(--ink-2); font-weight: 500; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; padding: .5rem .7rem; position: relative; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn)[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .1rem; height: 3px; border-radius: 3px; background: var(--leaf); }
.nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: var(--ink); }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .5rem clamp(1.1rem, 4vw, 2rem) 1.25rem; gap: 0; box-shadow: 0 18px 30px -20px rgba(19,54,64,.35); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)[aria-current="page"]::after { left: 0; right: auto; width: 28px; bottom: -1px; }
  .nav .btn { margin: 1rem 0 0; }
}

.flash { margin: 1.25rem 0 0; padding: .9rem 1.1rem; border-radius: var(--r); background: #EAF5DE; border: 1px solid #C5E2A6; color: #2F5310; font-weight: 600; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--mint-50) 0%, #fff 100%); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero-h { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; max-width: 17ch; text-wrap: balance; }
.hero .lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 54ch; margin-top: 1.4rem; }
.hero-map { margin-top: clamp(1rem, 3vw, 2rem); }
.idmap { width: 100%; height: auto; overflow: visible; }
.idmap .m-b circle { fill: var(--teal); opacity: .5; }
.idmap .m-b circle.m-hit { fill: var(--leaf); opacity: 1; }
.idmap .m-arc { fill: none; stroke: var(--leaf); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .9; }
.idmap .m-end { fill: var(--deep); }
.idmap .m-lbl text { font: 700 20px var(--font); fill: var(--ink); letter-spacing: -.01em; }

@media (prefers-reduced-motion: no-preference) {
  .idmap .m-b { opacity: 0; animation: dotIn .6s ease-out forwards; }
  .idmap .m-b0 { animation-delay: .05s } .idmap .m-b1 { animation-delay: .13s } .idmap .m-b2 { animation-delay: .21s }
  .idmap .m-b3 { animation-delay: .29s } .idmap .m-b4 { animation-delay: .37s } .idmap .m-b5 { animation-delay: .45s }
  .idmap .m-b6 { animation-delay: .53s } .idmap .m-b7 { animation-delay: .61s } .idmap .m-b8 { animation-delay: .69s }
  .idmap .m-b9 { animation-delay: .77s } .idmap .m-b10 { animation-delay: .85s } .idmap .m-b11 { animation-delay: .93s }
  .idmap .m-arc { stroke-dashoffset: 0; opacity: 0; animation: arcIn 1.2s .9s ease-out forwards; }
  .idmap .m-lbl { opacity: 0; animation: dotIn .5s 1.4s ease-out forwards; }
  @keyframes dotIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes arcIn { from { opacity: 0; } to { opacity: .9; } }
}

.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .2rem; padding: 1.25rem 1rem 0 0; }
.stat + .stat { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.stat dd { margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--teal-d); line-height: 1; }
.stat dt { font-size: .93rem; color: var(--ink-2); line-height: 1.35; max-width: 18ch; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 1.1rem 1rem 1.1rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-tight { padding-top: clamp(2rem, 4vw, 3rem); }
.sec-flush { padding-top: 0; }
.sec-mint { background: var(--mint-50); }
.sec-line { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.split > .h2 { max-width: 14ch; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.phead { background: var(--mint-50); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.phead::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 45%;
  background-image: radial-gradient(circle, rgba(63,175,195,.45) 2.2px, transparent 2.6px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 85%); mask-image: linear-gradient(to left, #000 0%, transparent 85%);
  pointer-events: none;
}
.phead .wrap { position: relative; z-index: 1; }
.phead-article { background: #fff; }
.phead-article::after { display: none; }
.crumb { font-size: .95rem; font-weight: 600; color: var(--ink-2); margin-bottom: 1rem; }
.crumb a { color: var(--teal-d); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.byline { color: var(--ink-2); margin-top: 1rem; }

/* ---------- programs ---------- */
.prog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 4vw, 3.5rem); }
.prog { border-top: 1px solid var(--line); }
.prog a { display: flex; gap: 1.1rem; padding: 1.6rem 0; text-decoration: none; color: inherit; }
.prog a:hover .prog-title { color: var(--teal-d); }
.prog-ico { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--mint); color: var(--teal-d); display: grid; place-items: center; }
.prog-ico .ico { width: 30px; height: 30px; }
.prog-ico.sm { width: 40px; height: 40px; border-radius: 12px; }
.prog-ico.sm .ico { width: 22px; height: 22px; }
.prog-body { display: flex; flex-direction: column; gap: .2rem; }
.prog-kind { font-size: .88rem; font-weight: 700; color: var(--leaf-d); }
.prog-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; transition: color .15s; }
.prog-sum { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) { .prog-list { grid-template-columns: 1fr; } }

.prog-feature { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.pf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; text-decoration: none; color: inherit; }
.prog-feature li:nth-child(even) .pf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.prog-feature li:nth-child(even) .pf-img { order: 2; }
.pf-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.pf-ico { display: grid; place-items: center; background: var(--mint); color: var(--teal-d);
  background-image: radial-gradient(circle, rgba(63,175,195,.35) 2px, transparent 2.4px); background-size: 16px 16px; }
.pf-ico .ico { width: 34%; height: auto; background: #fff; border-radius: 28px; padding: 9%; box-shadow: 0 10px 30px -12px rgba(15,76,92,.35); }
.pf-body { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.pf-title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pf .link { margin-top: .5rem; }
.pf:hover .pf-title { color: var(--teal-d); }
@media (max-width: 760px) {
  .pf, .prog-feature li:nth-child(even) .pf { grid-template-columns: 1fr; }
  .prog-feature li:nth-child(even) .pf-img { order: 0; }
  .pf-img { aspect-ratio: 16 / 9; }
}

/* ---------- jobs ---------- */
.jobs-home { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.jobs-home > div:first-child p { color: var(--ink-2); margin-top: 1rem; }
@media (max-width: 860px) { .jobs-home { grid-template-columns: 1fr; } }
.job-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.job + .job { border-top: 1px solid var(--line); }
.job-link { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; text-decoration: none; color: inherit; align-items: center; }
.job-link:hover { background: var(--mint-50); }
.job-main { display: flex; flex-direction: column; min-width: 0; }
.job-title { font-weight: 700; font-size: 1.07rem; line-height: 1.3; }
.job-link:hover .job-title { color: var(--teal-d); }
.job-org { color: var(--ink-2); font-size: .95rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; align-items: center; flex: none; max-width: 45%; }
.tag { font-size: .8rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--mint); color: var(--teal-dd); white-space: nowrap; }
.tag-casn { background: var(--deep); color: #fff; }
.tag-ln { background: #EAF5DE; color: var(--leaf-d); }
.job-dl { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.job-dl.closed { color: var(--bad); font-weight: 700; }
.more { margin-top: 1.25rem; }
@media (max-width: 560px) {
  .job-link { flex-direction: column; align-items: flex-start; }
  .job-tags { justify-content: flex-start; max-width: none; }
}

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a { padding: .75rem 1rem; text-decoration: none; color: var(--ink-2); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--leaf); }
.cnt { font-size: .8rem; background: var(--mint); color: var(--teal-dd); padding: .1rem .45rem; border-radius: 999px; margin-left: .2rem; }
.filter { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter input[type=search] { flex: 1 1 260px; }
.filter select { flex: 0 1 220px; }
.note { margin-top: 2rem; }

/* ---------- band ---------- */
.band { background: var(--deep); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(214,239,236,.16) 2px, transparent 2.4px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to right, transparent 30%, #000 100%); mask-image: linear-gradient(to right, transparent 30%, #000 100%);
}
.band-in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.band .h2 { color: #fff; max-width: 13ch; }
.band-lede { color: var(--mint); margin: 1rem 0 2rem; font-size: 1.1rem; max-width: 40ch; }
@media (max-width: 820px) { .band-in { grid-template-columns: 1fr; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.ticks li { position: relative; padding-left: 2.4rem; font-size: 1.1rem; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--leaf);
}
.ticks li::after {
  content: ""; position: absolute; left: .55rem; top: .45rem; width: .45rem; height: .75rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.ticks-dark li { color: var(--ink); }

/* ---------- posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .posts { grid-template-columns: 1fr; } }
.post-link { display: flex; flex-direction: column; gap: .55rem; text-decoration: none; color: inherit; }
.post-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; background: var(--mint); margin-bottom: .4rem; }
.post-img-empty { display: grid; place-items: center; background-image: radial-gradient(circle, rgba(63,175,195,.35) 2px, transparent 2.4px); background-size: 16px 16px; }
.post-img-empty img { width: 56px; opacity: .9; }
.post-meta { font-size: .88rem; color: var(--leaf-d); font-weight: 700; }
.post-meta time { color: var(--ink-2); font-weight: 500; }
.post-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.28; }
.post-link:hover .post-title { color: var(--teal-d); }
.post-ex { color: var(--ink-2); font-size: .98rem; }

.empty { border: 1.5px dashed var(--line); border-radius: 18px; padding: 1.75rem; background: #fff; color: var(--ink-2); max-width: 70ch; }
.empty strong { color: var(--ink); }

.contact-strip { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.contact-strip > div { max-width: 60ch; }
.contact-strip > div p { color: var(--ink-2); margin-top: 1rem; }
.contact-strip .cta-row { margin-top: 0; }
.sec-contact { border-top: 1px solid var(--line); }

/* ---------- about ---------- */
.vision { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); }
.vision .h3 { color: var(--leaf-d); padding-top: .55rem; }
.vision-txt { font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2.15rem); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; max-width: 30ch; }
@media (max-width: 820px) { .vision { grid-template-columns: 1fr; } }

.missions { list-style: none; counter-reset: m; margin: 0; padding: 0; }
.missions li { counter-increment: m; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.missions li:first-child { border-top: 0; padding-top: 0; }
.missions li::before { content: counter(m); grid-row: span 2; font-size: 1.6rem; font-weight: 800; color: var(--teal); line-height: 1.1; }
.missions h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .3rem; }
.missions p { color: var(--ink-2); }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.25rem); margin: 2.25rem 0 0; }
.values > div { border-top: 3px solid var(--teal); padding-top: 1.1rem; }
.values dt { font-size: 1.25rem; font-weight: 800; margin-bottom: .45rem; }
.values dd { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

.founders { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.founder { display: flex; gap: 1.35rem; align-items: center; background: #fff; border-radius: 20px; padding: 1.5rem; border: 1px solid var(--line); }
.founder-pic { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; }
.founder-ini { display: grid; place-items: center; background: var(--mint); color: var(--teal-d); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.founder-role { color: var(--leaf-d); font-weight: 700; font-size: .92rem; margin: 0; }
.founder-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.founder-bio { color: var(--ink-2); margin-top: .5rem; font-size: .98rem; }

.reqs { margin: 0; padding-left: 1.4rem; display: grid; gap: .9rem; font-size: 1.1rem; }
.reqs li::marker { color: var(--teal-d); font-weight: 800; }

/* ---------- article / detail ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } }
.prose { font-size: 1.1rem; line-height: 1.75; max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.015em; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; font-weight: 800; margin-top: 1.7em; }
.prose h4 { font-size: 1.08rem; font-weight: 800; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; padding: .2rem 0 .2rem 1.25rem; border-left: 4px solid var(--leaf); color: var(--ink-2); font-style: italic; }
.prose img { border-radius: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose figcaption { font-size: .92rem; color: var(--ink-2); margin-top: .5rem; }
.lead-img { width: 100%; border-radius: 18px; margin-bottom: 2rem; }
.aside { position: sticky; top: 96px; }
.aside-h { font-size: 1rem; font-weight: 800; margin-bottom: .75rem; }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list a { display: flex; gap: .8rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.3; }
.aside-list a:hover { color: var(--teal-d); }
.aside-list small { display: block; font-weight: 500; color: var(--ink-2); font-size: .85rem; }
.facts { background: var(--mint-50); border-radius: 18px; padding: 1.5rem; border: 1px solid var(--line); }
.facts dl { margin: 0 0 1.25rem; display: grid; gap: .9rem; }
.facts dt { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form-intro p { color: var(--ink-2); margin-top: 1rem; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.25rem, 3.5vw, 2.25rem); display: grid; gap: 1.15rem; box-shadow: 0 30px 60px -45px rgba(15,76,92,.45); }
.form .h3 { margin-bottom: .25rem; }
.f { display: flex; flex-direction: column; gap: .4rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.f label, .f legend { font-weight: 700; font-size: .95rem; padding: 0; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 600px) { .f-row { grid-template-columns: 1fr; } }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: .75rem .9rem; border: 1.5px solid #BCD3D6; border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 6rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-d); box-shadow: 0 0 0 3px rgba(63,175,195,.3); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.f-bad input, .f-bad select, .f-bad textarea { border-color: var(--bad); }
.f-err { color: var(--bad); font-size: .9rem; font-weight: 600; }
.form-alert { background: #FDECEA; border: 1px solid #F5C2BC; color: var(--bad); padding: .8rem 1rem; border-radius: 10px; font-weight: 600; margin: 0; }
.f-check label { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; font-size: 1rem; }
.f-check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--teal-d); flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-block; padding: .6rem 1.1rem; border: 1.5px solid #BCD3D6; border-radius: 10px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info .h3 { margin-bottom: 1.25rem; }
.cinfo { margin: 0; display: grid; gap: 1.2rem; }
.cinfo dt { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.cinfo dd { margin: .15rem 0 0; font-size: 1.1rem; font-weight: 700; display: flex; flex-direction: column; }
.cinfo a { color: var(--ink); text-decoration: none; }
.cinfo a:hover { color: var(--teal-d); text-decoration: underline; }

.done { text-align: center; display: flex; flex-direction: column; align-items: center; }
.done img { width: 110px; margin-bottom: 1.5rem; }
.done .h1 { margin: 0 auto; }
.done .lede { margin-left: auto; margin-right: auto; }
.done .cta-row { justify-content: center; }

.pager { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: 2.25rem; align-items: center; }
.pager a, .pager span { min-width: 2.6rem; text-align: center; padding: .5rem .8rem; border-radius: 10px; text-decoration: none; font-weight: 700; }
.pager a { color: var(--ink); border: 1px solid var(--line); }
.pager a:hover { border-color: var(--teal-d); color: var(--teal-d); }
.pager span[aria-current] { background: var(--teal-d); color: #fff; }
.pager .gap { color: var(--ink-2); }

/* ---------- footer ---------- */
.ftr { background: #0B3C49; color: #CFE7E5; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 2rem; }
@media (max-width: 820px) { .ftr-grid { grid-template-columns: 1fr; } }
.ftr-logo { display: flex; gap: .9rem; align-items: center; color: #fff; line-height: 1.35; }
.ftr-logo img { width: 44px; background: #fff; border-radius: 12px; padding: 5px; box-sizing: content-box; }
.ftr-logo strong { font-size: 1.2rem; }
.ftr-tag { font-style: italic; margin-top: 1.25rem; color: var(--mint); }
.ftr-h { font-size: .95rem; font-weight: 700; color: #8FC9CF; margin-bottom: .8rem; }
.ftr-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(207,231,229,.2); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 640px) {
  .idmap .m-lbl text { font-size: 38px; }
  .idmap .m-lbl text[text-anchor="end"] { transform: translateY(26px); }
  .idmap .m-end { r: 9px; }
}

/* =========================================================
   Motion & polish
   Everything here is skipped for visitors who prefer reduced motion.
   ========================================================= */
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(63,175,195,.35), transparent 70%); }
.hero::after { width: 420px; height: 420px; left: -140px; top: 35%; background: radial-gradient(circle, rgba(122,179,66,.22), transparent 70%); }

.hdr { transition: box-shadow .25s, background-color .25s; }
.hdr.scrolled { box-shadow: 0 10px 30px -18px rgba(19,54,64,.35); background: rgba(255,255,255,.92); }

.btn { transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(15,110,128,.8); }
.btn:active { transform: translateY(0); }
.btn-ghost:hover { box-shadow: none; }

.prog-ico { transition: background-color .25s, color .25s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.prog a:hover .prog-ico { background: var(--teal-d); color: #fff; transform: rotate(-6deg) scale(1.06); }
.prog-title { background: linear-gradient(var(--leaf), var(--leaf)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease, color .15s; }
.prog a:hover .prog-title { background-size: 100% 2px; }

.job-link { transition: background-color .2s, padding-left .25s ease; }
.job-link:hover { padding-left: 1.75rem; }
.post-link { overflow: hidden; }
.post-img { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.post-link:hover .post-img { transform: scale(1.03); box-shadow: 0 18px 34px -22px rgba(15,76,92,.6); }
.founder, .values > div { transition: transform .3s ease, box-shadow .3s ease; }
.founder:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(15,76,92,.55); }

/* province ticker */
.marquee { position: relative; margin-top: clamp(1.75rem, 4vw, 2.75rem); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; }
.mq-track ul { display: flex; gap: 2.25rem; list-style: none; margin: 0; padding: 0 2.25rem 0 0; }
.mq-track li { display: inline-flex; align-items: center; gap: 2.25rem; white-space: nowrap; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.mq-track li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); opacity: .8; }

@media (prefers-reduced-motion: no-preference) {
  /* hero entrance */
  .hero-h, .hero .lede, .hero .cta-row { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero .lede { animation-delay: .12s; }
  .hero .cta-row { animation-delay: .24s; }
  .hero::before { animation: drift 18s ease-in-out infinite alternate; }
  .hero::after { animation: drift 22s ease-in-out -6s infinite alternate-reverse; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }

  /* map: glowing member dots and a travelling route */
  .idmap .m-hit { transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-in-out 1.6s infinite; }
  .idmap .m-b2 .m-hit, .idmap .m-b7 .m-hit { animation-delay: 2.1s; }
  .idmap .m-b4 .m-hit, .idmap .m-b9 .m-hit { animation-delay: 2.6s; }
  .idmap .m-b5 .m-hit, .idmap .m-b11 .m-hit { animation-delay: 3.1s; }
  @keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: .55; } }
  .idmap .m-arc { animation: arcIn 1.2s .9s ease-out forwards, march 1.4s 2.1s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -18; } }
  .idmap .m-end { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s 2s ease-in-out infinite; }

  /* province ticker */
  .mq-track { animation: ticker 120s linear infinite; }
  .marquee:hover .mq-track { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(-50%); } }

  /* membership band: slow drifting dots */
  .band::before { animation: dots 40s linear infinite; }
  @keyframes dots { to { background-position: 200px 100px; } }

  /* scroll reveal (classes are added by site.js, so nothing hides without JS) */
  .js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mq-track ul[aria-hidden] { display: none; }
  .mq-track { flex-wrap: wrap; width: auto; }
  .mq-track ul { flex-wrap: wrap; row-gap: .5rem; }
}

/* ---------- member journey (storytelling) ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.story-intro { position: sticky; top: 110px; }
.story-intro .h2 { max-width: 15ch; }
.story-intro .prose-lg { margin-top: 1.25rem; font-size: 1.05rem; color: var(--ink-2); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-intro { position: static; } }
.journey { --p: 1; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.journey::before, .journey::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; }
.journey::before { background: #CFE3E5; }
.journey::after { background: linear-gradient(var(--teal), var(--leaf)); transform-origin: top; transform: scaleY(var(--p)); }
.jstep, .jend { position: relative; z-index: 1; display: grid; grid-template-columns: 56px 1fr; gap: 1.35rem; align-items: start; }
.jdot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-d); color: #fff;
  box-shadow: 0 0 0 6px var(--mint-50), 0 0 0 7px rgba(63,175,195,.35); transition: background-color .4s, color .4s, box-shadow .4s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.jdot .ico { width: 28px; height: 28px; }
.jdot-end { background: #fff; }
.jdot-end img { width: 30px; height: auto; }
.jcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem 1.5rem; box-shadow: 0 16px 34px -30px rgba(15,76,92,.6); }
.jstage { margin: 0 0 .3rem; font-size: .85rem; font-weight: 700; color: var(--leaf-d); }
.jtitle { font-size: 1.3rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; margin-bottom: .55rem; }
.jbody { color: var(--ink-2); font-size: .98rem; margin-bottom: .9rem; }
.jbody:last-child { margin-bottom: 0; }
.jstep:nth-last-child(2) .jcard { background: var(--deep); border-color: var(--deep); color: #fff; position: relative; overflow: hidden; }
.jstep:nth-last-child(2) .jcard::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(214,239,236,.16) 2px, transparent 2.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); mask-image: linear-gradient(to left, #000, transparent 70%); pointer-events: none; }
.jstep:nth-last-child(2) .jcard > * { position: relative; }
.jstep:nth-last-child(2) .jstage { color: #A8D86E; }
.jstep:nth-last-child(2) .jbody { color: var(--mint); }
.jstep:nth-last-child(2) .link { color: #fff; }
.jend .jcard { background: transparent; border: 0; box-shadow: none; padding: .55rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.jclosing { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); max-width: 30ch; }

/* motion: dots wait in grey until the reader reaches them */
.journey.live .jstep .jdot { background: #fff; color: var(--ink-3); box-shadow: 0 0 0 6px var(--mint-50), 0 0 0 7px #CFE3E5; }
.journey.live .jstep.on .jdot { background: var(--teal-d); color: #fff; transform: scale(1.06); box-shadow: 0 0 0 6px var(--mint-50), 0 0 0 9px rgba(122,179,66,.45); }
.journey.live .jstep:nth-last-child(2).on .jdot { background: var(--leaf); }
@media (max-width: 600px) {
  .jstep, .jend { grid-template-columns: 44px 1fr; gap: .9rem; }
  .jdot { width: 44px; height: 44px; }
  .jdot .ico { width: 22px; height: 22px; }
  .journey::before, .journey::after { left: 21px; top: 22px; bottom: 22px; }
  .jcard { padding: 1.15rem 1.2rem; }
  .jtitle { font-size: 1.15rem; }
}
