/* ============================================================
   ASIA PACIFIC MEDIATION CENTRE — Warm Humanist Design System
   Palette: warm sand paper, deep teal, coral, amber
   Type: Sora (display sans) · Manrope (text sans)
   ============================================================ */

@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 400 800;
  font-display: swap; src: url("/assets/fonts/sora.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800;
  font-display: swap; src: url("/assets/fonts/manrope.woff2") format("woff2");
}

:root {
  --sand:       #FBF6EF;
  --sand-deep:  #F3EADD;
  --white:      #FFFFFF;
  --teal:       #0E5B55;
  --teal-deep:  #093F3B;
  --teal-soft:  #DCEBE7;
  --coral:      #E9684B;
  --coral-deep: #C94E33;
  --amber:      #F2A93B;
  --ink:        #1F2A28;
  --ink-soft:   #45524F;
  --ink-faint:  #74807C;
  --line:       #E5DCCD;
  --display: "Sora", "Arial", sans-serif;
  --text: "Manrope", "Helvetica Neue", sans-serif;
  --r: 20px;
  --r-sm: 12px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 74rem;
  --shadow: 0 20px 50px -24px rgba(9, 63, 59, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--teal-deep); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral-deep);
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--coral);
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 246, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; padding-bottom: 0.9rem; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo .mark {
  width: 42px; height: 42px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, var(--amber) 0 29%, transparent 30%),
    radial-gradient(circle at 68% 68%, var(--coral) 0 29%, transparent 30%),
    var(--teal);
  flex: none;
}
.logo .name {
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.15;
  color: var(--teal-deep);
}
.logo .name small {
  display: block; font-family: var(--text); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
.menu { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.9rem); flex-wrap: wrap; }
.menu a {
  font-weight: 700; font-size: 0.9rem; color: var(--ink-soft);
  padding: 0.3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.menu a:hover, .menu a.active { color: var(--teal); border-bottom-color: var(--amber); }
.menu .cta {
  background: var(--coral); color: #fff; padding: 0.6rem 1.2rem;
  border-radius: 999px; border: none; transition: background .2s, transform .2s;
}
.menu .cta:hover { background: var(--coral-deep); color: #fff; transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .blob {
  position: absolute; border-radius: 50%; z-index: 0; opacity: 0.55;
}
.hero .blob.b1 { width: 520px; height: 520px; right: -160px; top: -180px; background: var(--teal-soft); }
.hero .blob.b2 { width: 260px; height: 260px; right: 240px; top: 220px; background: #FBE3C8; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; color: var(--teal-deep);
  max-width: 16ch;
}
.hero h1 .hl { color: var(--coral); }
.hero p.lede { margin-top: 1.3rem; font-size: 1.16rem; color: var(--ink-soft); max-width: 46ch; font-weight: 500; }
.hero-actions { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  padding: 0.9rem 1.7rem; border-radius: 999px; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.ghost { border: 2px solid var(--teal); color: var(--teal); }
.btn.ghost:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn.coral { background: var(--coral); color: #fff; }
.btn.coral:hover { background: var(--coral-deep); transform: translateY(-2px); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4/3.4; object-fit: cover;
  border-radius: var(--r); box-shadow: var(--shadow);
}
.hero-media::after {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 130px; height: 130px;
  border-radius: 50%; background: var(--amber); opacity: .9; z-index: -1;
}
.hero-badge {
  position: absolute; left: -14px; bottom: 24px;
  background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow);
  padding: 0.8rem 1.1rem; display: flex; gap: 0.7rem; align-items: center;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.hero-badge span { font-weight: 700; font-size: 0.85rem; color: var(--teal-deep); }

/* ---------- stats strip ---------- */
.stats { padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3rem); }
.stats-card {
  background: var(--teal); color: #fff; border-radius: var(--r);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid; gap: 1.8rem; box-shadow: var(--shadow);
}
@media (min-width: 720px) { .stats-card { grid-template-columns: repeat(4, 1fr); } }
.stat .n {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--amber);
}
.stat .l { margin-top: 0.3rem; font-size: 0.85rem; font-weight: 600; color: #CFE4DE; }
.stats-note { grid-column: 1 / -1; font-size: 0.72rem; color: #9FC2BA; margin-top: -0.6rem; }

/* ---------- sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 42rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--teal-deep); margin-top: 0.8rem; }
.section-head p { margin-top: 0.8rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- program cards ---------- */
.programs { display: grid; gap: 1.3rem; }
@media (min-width: 720px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .programs { grid-template-columns: repeat(4, 1fr); } }
.program {
  background: var(--white); border-radius: var(--r); padding: 1.7rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.program:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.program .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1.1rem;
}
.program:nth-child(1) .ico { background: var(--teal-soft); }
.program:nth-child(2) .ico { background: #FBE3C8; }
.program:nth-child(3) .ico { background: #F9DCD3; }
.program:nth-child(4) .ico { background: #E9E4F4; }
.program h3 { font-size: 1.12rem; font-weight: 700; color: var(--teal-deep); }
.program p { margin-top: 0.6rem; font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- impact stories ---------- */
.stories { display: grid; gap: 1.5rem; }
@media (min-width: 700px)  { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .stories { grid-template-columns: repeat(3, 1fr); } }
.story {
  background: var(--white); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.story:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.story-media { position: relative; }
.story-media img { aspect-ratio: 16/9.5; width: 100%; object-fit: cover; }
.story-tag {
  position: absolute; left: 14px; top: 14px;
  background: rgba(255,255,255,0.94); border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
  padding: 0.35rem 0.8rem;
}
.story-tag.win { color: var(--coral-deep); }
.story-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.story h3 { font-size: 1.13rem; font-weight: 700; color: var(--ink); }
.story h3 a:hover { color: var(--teal); }
.story p { margin-top: 0.6rem; font-size: 0.93rem; color: var(--ink-soft); flex: 1; }
.story .meta { margin-top: 1rem; font-size: 0.78rem; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- mediate.asia promo band ---------- */
.promo {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal) 55%, #14776E);
  border-radius: var(--r); color: #fff; overflow: hidden; position: relative;
  padding: clamp(2rem, 5vw, 3.2rem);
  display: grid; gap: 2rem; align-items: center;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .promo { grid-template-columns: 1.2fr 0.8fr; } }
.promo::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px;
  border-radius: 50%; border: 40px solid rgba(242, 169, 59, 0.25);
}
.promo .eyebrow { color: var(--amber); }
.promo .eyebrow::before { background: var(--amber); }
.promo h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-top: 0.8rem; }
.promo p { margin-top: 0.9rem; color: #CFE4DE; max-width: 52ch; font-weight: 500; }
.promo-shot {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--r-sm); padding: 1.4rem;
  color: var(--ink); box-shadow: var(--shadow);
}
.promo-shot .masthead-mini {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; text-align: center;
  color: #191712;
}
.promo-shot .masthead-mini b { font-weight: 500; }
.promo-shot .masthead-mini .gold { color: #A2823D; }
.promo-shot .rule { height: 1px; background: #DAD3C4; margin: 0.8rem 0; }
.promo-shot .fake-lines span {
  display: block; height: 8px; border-radius: 4px; background: #EFEAE0; margin: 7px 0;
}
.promo-shot .fake-lines span:nth-child(1) { width: 92%; }
.promo-shot .fake-lines span:nth-child(2) { width: 78%; }
.promo-shot .fake-lines span:nth-child(3) { width: 85%; }
.promo-shot .tagline-mini { font-size: 0.72rem; color: #6E6A5E; text-align: center; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.2rem; }

/* ---------- resources ---------- */
.res-grid { display: grid; gap: 1.3rem; }
@media (min-width: 700px)  { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .res-grid { grid-template-columns: repeat(3, 1fr); } }
.res {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.5rem 1.4rem; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.res:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.res .sector {
  align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.res .sector.public { background: var(--teal-soft); color: var(--teal-deep); }
.res .sector.private { background: #F9DCD3; color: var(--coral-deep); }
.res .sector.both { background: #FBE3C8; color: #8A5A13; }
.res h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.res h3 a:hover { color: var(--teal); }
.res p { margin-top: 0.55rem; font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.res .pub { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); }

/* ---------- founder ---------- */
.founder-card {
  background: var(--white); border-radius: var(--r); border: 1px solid var(--line);
  overflow: hidden; display: grid; box-shadow: var(--shadow);
}
@media (min-width: 860px) { .founder-card { grid-template-columns: 0.9fr 1.4fr; } }
.founder-visual {
  background: linear-gradient(150deg, var(--teal), var(--teal-deep));
  min-height: 280px; position: relative; display: grid; place-items: center;
}
.founder-visual .monogram {
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(242,169,59,0.7);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--amber);
}
.founder-body { padding: clamp(1.6rem, 4vw, 2.6rem); }
.founder-body h3 { font-size: 1.5rem; font-weight: 800; color: var(--teal-deep); }
.founder-body .role { margin-top: 0.2rem; font-weight: 700; color: var(--coral-deep); font-size: 0.95rem; }
.founder-body blockquote {
  margin: 1.3rem 0 0; padding-left: 1.1rem; border-left: 4px solid var(--amber);
  font-size: 1.08rem; color: var(--ink-soft); font-weight: 500; font-style: italic;
}
.founder-body .bio { margin-top: 1.2rem; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- page head ---------- */
.page-head { padding: clamp(2.8rem, 7vw, 4.5rem) 0 0; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; color: var(--teal-deep); max-width: 20ch; }
.page-head .lede { margin-top: 1rem; max-width: 56ch; font-size: 1.12rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- story article page ---------- */
.article-wrap { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); }
.article-hero-img { max-width: 58rem; margin: 2rem auto 0; padding: 0 var(--gutter); }
.article-hero-img img { width: 100%; border-radius: var(--r); aspect-ratio: 21/10; object-fit: cover; box-shadow: var(--shadow); }
.article-hero-img .credit { margin-top: 0.5rem; font-size: 0.75rem; color: var(--ink-faint); text-align: right; }
.article-body { margin-top: 2.2rem; font-size: 1.09rem; }
.article-body p + p { margin-top: 1.3em; }
.article-body a { color: var(--teal); font-weight: 700; border-bottom: 2px solid var(--teal-soft); }
.article-body a:hover { border-bottom-color: var(--amber); }
.source-note {
  margin-top: 2.4rem; background: var(--sand-deep); border-radius: var(--r-sm);
  padding: 1.1rem 1.3rem; font-size: 0.88rem; color: var(--ink-soft);
}
.source-note a { color: var(--teal); font-weight: 700; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.8rem 0 2rem; }
.chip {
  font-family: var(--display); font-weight: 700; font-size: 0.78rem;
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink-soft);
  transition: all .2s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- prose ---------- */
.prose { max-width: 46rem; font-size: 1.07rem; color: var(--ink-soft); }
.prose p + p { margin-top: 1.2em; }
.prose h2 { font-size: 1.45rem; font-weight: 800; color: var(--teal-deep); margin: 2em 0 0.6em; }
.prose strong { color: var(--ink); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--coral); border-radius: var(--r); color: #fff; text-align: center;
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 3rem);
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.cta-banner::before, .cta-banner::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12);
}
.cta-banner::before { width: 220px; height: 220px; left: -70px; bottom: -90px; }
.cta-banner::after { width: 160px; height: 160px; right: -40px; top: -60px; }
.cta-banner h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; position: relative; }
.cta-banner p { margin: 0.8rem auto 1.6rem; max-width: 50ch; color: #FDE4DC; font-weight: 500; position: relative; }
.cta-banner .btn { background: #fff; color: var(--coral-deep); position: relative; }
.cta-banner .btn:hover { background: var(--teal-deep); color: #fff; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(3rem, 7vw, 5rem); background: var(--teal-deep); color: #A9C6BF; }
.footer .wrap { padding: clamp(2.6rem, 6vw, 4rem) var(--gutter) 2rem; }
.footer-grid { display: grid; gap: 2.4rem; }
@media (min-width: 840px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer .logo .name { color: #fff; }
.footer .logo .name small { color: #7FA79F; }
.footer .mission { margin-top: 1rem; font-size: 0.94rem; max-width: 42ch; }
.footer h4 {
  font-family: var(--display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: #6E968D; margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer li + li { margin-top: 0.55rem; }
.footer a { font-size: 0.92rem; font-weight: 600; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-legal {
  margin-top: 2.8rem; padding-top: 1.3rem; border-top: 1px solid #1A5049;
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between;
  font-size: 0.78rem; color: #6E968D;
}

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media print { .top, .footer { display: none; } }
