/* ---------- Fact Hub Myanmar — Volunteer Landing ---------- */

@font-face {
  font-family: 'Yati Sans';
  src: url('fonts/YatiSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yati Sans';
  src: url('fonts/YatiSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — near-monochrome warm paper + single orange accent */
  --paper: #F7F3EC;
  --paper-2: #EFE9DC;
  --ink: #141211;
  --ink-2: #3A342E;
  --ink-3: #6B635A;
  --rule: #D8D1C2;
  --rule-2: #C2B9A5;
  --accent: #EC5A24;       /* logo orange */
  --accent-ink: #B8360A;   /* darker for hover on paper */
  --accent-tint: #FBE4D7;

  /* Type */
  --serif: 'Newsreader', 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --my: 'Yati Sans', 'Padauk', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Grid */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Burmese mode swaps primary type for Yati Sans, preserves serif rhythm via Yati */
body[data-lang='my'] {
  font-family: var(--my);
}
body[data-lang='my'] .serif,
body[data-lang='my'] h1,
body[data-lang='my'] h2,
body[data-lang='my'] h3,
body[data-lang='my'] .display {
  font-family: var(--my);
  font-weight: 700;
  letter-spacing: 0;
}

/* --------- Typography scale (editorial) --------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.sans  { font-family: var(--sans); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
}

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(44px, 7.2vw, 104px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }

p { margin: 0 0 1em; }
.lede { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--ink-2); letter-spacing: -0.005em; }

/* Links */
a { color: inherit; text-decoration: none; }
a.inline { border-bottom: 1px solid var(--rule-2); transition: border-color .15s, color .15s; }
a.inline:hover { border-color: var(--accent); color: var(--accent-ink); }

/* --------- Layout --------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }
.rule-ink { border: 0; height: 1px; background: var(--ink); margin: 0; }

/* --------- Nav --------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--accent-ink); }

.lang-toggle {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lang-toggle button {
  appearance: none; background: transparent; border: 0;
  padding: 6px 14px; cursor: pointer;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
}
.lang-toggle button.active { background: var(--ink); color: var(--paper); }
body[data-lang='my'] .lang-toggle button { font-family: var(--my); letter-spacing: 0; text-transform: none; }

/* --------- Hero --------- */
.hero { padding: clamp(64px, 10vw, 140px) 0 clamp(64px, 8vw, 120px); }
.hero-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 40px;
}
.hero-meta .issue { color: var(--ink); }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: italic; font-family: var(--serif); color: var(--ink-2); }
.hero h1 .amp { color: var(--accent); font-style: italic; }
.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  margin-top: clamp(36px, 5vw, 64px);
  align-items: start;
}
.hero-sub .lede { max-width: 44ch; }
.hero-meta-block {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-meta-block dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.hero-meta-block dt { color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; padding-top: 3px; }
.hero-meta-block dd { margin: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .1s, background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* --------- Sections --------- */
section { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--rule); }
.sec-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: baseline;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.sec-head .eyebrow { padding-top: 6px; }
.sec-head h2 { max-width: 20ch; }

/* --------- Slogan band --------- */
.slogan {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(100px, 14vw, 200px) 0;
  border: 0;
  position: relative;
  overflow: hidden;
}
.slogan::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(236,90,36,0.18), transparent 60%),
    radial-gradient(600px 300px at 10% 90%, rgba(236,90,36,0.10), transparent 60%);
  pointer-events: none;
}
.slogan-quote {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-style: italic;
  max-width: 22ch;
  position: relative;
}
.slogan-quote .mark {
  color: var(--accent);
  font-style: normal;
  padding-right: 6px;
}
.slogan-quote .swap { color: var(--accent); font-style: italic; }
.slogan-attr {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 70%, transparent);
  margin-top: 48px;
  display: flex; align-items: center; gap: 12px;
}
.slogan-attr .line { width: 40px; height: 1px; background: var(--accent); }
body[data-lang='my'] .slogan-quote { font-style: normal; letter-spacing: 0; line-height: 1.25; }

/* --------- Mission: two-column editorial --------- */
.mission-body { columns: 2; column-gap: clamp(32px, 5vw, 64px); font-size: 17px; color: var(--ink-2); }
.mission-body p { break-inside: avoid; }
.mission-body p:first-child::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 64px;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--accent);
  font-weight: 400;
}
@media (max-width: 820px) { .mission-body { columns: 1; } }

.values { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.value {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--rule);
}
.value:last-child { border-right: 0; padding-right: 0; }
.value .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; }
.value h3 { margin-top: 10px; font-size: 22px; }
.value p { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 820px) {
  .values { grid-template-columns: 1fr 1fr; }
  .value { border-bottom: 1px solid var(--rule); }
  .value:nth-child(even) { border-right: 0; }
}

/* --------- Roles --------- */
.roles { display: grid; grid-template-columns: 1fr; gap: 0; }
.role {
  display: grid;
  grid-template-columns: 120px 1fr 2fr auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  transition: padding .25s ease, background .2s ease;
}
.role:last-child { border-bottom: 1px solid var(--rule); }
.role:hover { padding-left: 10px; }
.role:hover .role-title { color: var(--accent-ink); }
.role:hover .role-arrow { transform: translateX(6px); color: var(--accent); }
.role-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; }
.role-title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.01em; transition: color .2s; }
.role-desc { color: var(--ink-3); font-size: 15px; max-width: 60ch; }
.role-arrow { font-size: 22px; transition: transform .2s, color .2s; }

@media (max-width: 820px) {
  .role { grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; row-gap: 8px; }
  .role-num { grid-row: 1; }
  .role-title { grid-column: 1 / -1; grid-row: 2; }
  .role-desc { grid-column: 1 / -1; grid-row: 3; }
  .role-arrow { grid-row: 1; }
}

/* --------- Workflow / numbered steps --------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 20px; margin-top: 14px; }
.step p { color: var(--ink-3); font-size: 14px; margin-top: 10px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }

/* --------- Culture: pull-quotes + bullets --------- */
.culture { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.culture-left p { max-width: 58ch; }
.culture-right { border-left: 1px solid var(--rule); padding-left: clamp(24px, 3vw, 40px); }
.candid { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--ink); margin: 0 0 24px; }
.candid::before { content: '“'; color: var(--accent); font-family: var(--serif); padding-right: 6px; }
body[data-lang='my'] .candid { font-style: normal; }

.thrives {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--rule);
}
.thrives > div { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: baseline; }
.thrives .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.thrives .yes .label { color: var(--accent); }
.thrives p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .culture { grid-template-columns: 1fr; } .culture-right { border-left: 0; padding-left: 0; } }

/* --------- Stats band --------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 0; }
.stat { padding: 36px 28px 36px 0; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat .big { font-family: var(--serif); font-size: clamp(44px, 5.5vw, 76px); line-height: 1; letter-spacing: -0.02em; }
.stat .big .unit { font-size: 0.45em; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.stat .lbl { margin-top: 14px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } .stat { border-bottom: 1px solid var(--rule); } .stat:nth-child(even) { border-right: 0; } .stat:nth-child(3), .stat:nth-child(4) { padding-bottom: 36px; } }

/* --------- Apply --------- */
.apply { background: var(--paper-2); }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.apply h2 { max-width: 16ch; }
.apply .lede { margin-top: 24px; max-width: 38ch; }
.apply-form {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(28px, 3vw, 44px);
}
.apply-form .field { display: grid; gap: 8px; margin-bottom: 22px; }
.apply-form label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.apply-form input, .apply-form select, .apply-form textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .15s;
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  border-color: var(--accent);
}
.apply-form textarea { min-height: 92px; resize: vertical; font-family: var(--sans); }
.apply-form .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  user-select: none;
  color: var(--ink-2);
  background: transparent;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.apply-form .submit { width: 100%; justify-content: center; margin-top: 14px; }
@media (max-width: 820px) { .apply-grid { grid-template-columns: 1fr; } }

/* --------- Footer --------- */
footer { padding: 64px 0 48px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 13px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.foot-grid h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; font-weight: 500; }
.foot-grid a { display: block; padding: 4px 0; color: var(--ink-2); }
.foot-grid a:hover { color: var(--accent-ink); }
.foot-bottom { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; }
.foot-bottom img { height: 26px; opacity: 0.85; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* --------- Misc --------- */
.hide { display: none !important; }

/* fade on load, only above-the-fold elements */
.fade-in { animation: fade .8s ease both; }
.fade-in.d1 { animation-delay: .08s; }
.fade-in.d2 { animation-delay: .16s; }
.fade-in.d3 { animation-delay: .24s; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* section reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Selection */
::selection { background: var(--accent); color: var(--paper); }
