/* Design system: the homepage's type and colors on a 1280 × 720 slide.
   One typeface (system UI). Ink for content, muted for support, one accent
   (orange) for labels, numbers, key words and references. The orange → pink →
   violet spectrum appears only on the two hero lines (cover and vision). */
:root {
  color-scheme: light;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --paper: #fffdf8;
  --ink: #1b2136;
  --muted: #5f6577;
  --line: rgba(27, 33, 54, .13);
  --accent: #bf5a1b;
  --night: #141a2e;
  --spectrum: linear-gradient(90deg, #d86d20, #e0607f, #7565dd);
  --scale: 1;
  font-family: var(--font);
  color: var(--ink);
  background: #ecebe6;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .3; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }

/* App chrome */
.presentation-app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.toolbar {
  min-height: 64px; display: flex; align-items: center; gap: 22px;
  padding: 10px max(24px, env(safe-area-inset-right)) 10px max(24px, env(safe-area-inset-left));
  background: var(--paper); border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.toolbar-brand { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.toolbar-caption { color: var(--muted); font-size: 13px; }
.toolbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.toolbar button { border: 0; background: transparent; padding: 9px 12px; font-size: 14px; min-height: 40px; border-radius: 8px; }
.toolbar button:hover, .pager button:not(:disabled):hover { background: #f1eee6; }
.deck-select {
  font-size: 16px; color: var(--ink); background: transparent; min-height: 40px; max-width: 220px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.deck-select:hover { background: #f1eee6; }
.deck-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.language-switch { display: flex; border: 1px solid var(--line); padding: 2px; border-radius: 8px; }
.language-switch button { min-width: 45px; min-height: 32px; padding: 6px 9px; border-radius: 6px; }
.language-switch button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.viewport { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; padding: 20px; overflow: hidden; }
/* Focus lands here only programmatically (tabindex -1), to keep arrow keys on the slides. */
.viewport:focus { outline: none; }
.stage-frame { position: relative; width: min(1280px, 100%); aspect-ratio: 16 / 9; box-shadow: 0 10px 40px rgba(27, 33, 54, .08); }
.stage { width: 1280px; height: 720px; transform: scale(var(--scale)); transform-origin: top left; position: absolute; left: 0; top: 0; }

/* Slide canvas */
.slide { position: absolute; inset: 0; width: 1280px; height: 720px; background: var(--paper); color: var(--ink); overflow: hidden; touch-action: pan-y; }
:where(.slide) :where(p, h1, h2, h3, blockquote, dl, dd, ol, ul) { margin: 0; font-weight: 400; }
.slide [data-i18n], .slide [data-i18n-html] { white-space: pre-line; }
.dark { --ink: #fff; --muted: #c4cada; --line: rgba(255, 255, 255, .16); --accent: #f2ad5b; background: var(--night); }
.spectrum { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Key words of a verse: one color, full weight. */
.slide mark { background: none; color: var(--accent); font-weight: 700; white-space: nowrap; }

/* Shared type scale */
.eyebrow { position: absolute; left: 64px; top: 44px; max-width: 1000px; color: var(--muted); font-size: 15px; font-weight: 700; letter-spacing: .14em; line-height: 22px; text-transform: uppercase; }
html:lang(zh-Hans) .eyebrow { letter-spacing: .08em; }
.slide-number { position: absolute; right: 64px; bottom: 36px; color: var(--muted); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slide-logo { position: absolute; left: 1128px; top: 32px; width: 88px; height: 88px; object-fit: contain; }
.slide .slide-title { position: absolute; left: 64px; top: 96px; width: 1000px; font-size: 54px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.website-link { position: absolute; left: 64px; top: 612px; color: var(--accent); font-size: 22px; font-weight: 700; text-decoration: none; }
.website-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.list-number { color: var(--accent); min-width: 52px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Cover */
.slide .cover-title { position: absolute; left: 64px; top: 236px; font-size: 96px; font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.slide .cover-purpose { position: absolute; left: 64px; top: 350px; width: fit-content; max-width: 1152px; font-size: 52px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.cover .slide-number { display: none; }

/* Agenda, principles: ruled lists */
.agenda-list, .principle-list { position: absolute; left: 64px; top: 228px; width: 1152px; list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.agenda-list li, .principle-list li { border-top: 1px solid var(--line); }
.agenda-list a { display: flex; align-items: baseline; gap: 28px; padding: 24px 0; color: inherit; text-decoration: none; font-size: 34px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.agenda-list a:hover span:last-child { color: var(--accent); }
.principle-list li { display: flex; align-items: baseline; gap: 28px; padding: 16px 0; font-size: 34px; font-weight: 500; line-height: 1.3; }

/* Purpose */
.purpose .slide-title { font-size: 40px; top: 104px; }
.slide .purpose-statement { position: absolute; top: 236px; left: 64px; width: 1050px; font-size: 64px; font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.nonprofit-status { position: absolute; left: 64px; top: 612px; max-width: 1050px; color: var(--muted); font-size: 21px; line-height: 1.4; }

/* Vision: the homepage hero */
.vision-kicker { position: absolute; left: 64px; top: 168px; color: var(--accent); font-size: 20px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.slide .vision-lines { position: absolute; left: 64px; top: 212px; width: 1152px; font-size: 80px; font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.vision-lines span { display: block; width: fit-content; }
.slide .vision-subtitle { position: absolute; left: 64px; top: 500px; color: var(--accent); font-size: 32px; font-weight: 600; letter-spacing: -.015em; }

/* Team */
.team-list { position: absolute; left: 64px; top: 208px; width: 1152px; border-bottom: 1px solid var(--line); }
.team-list > div { display: grid; grid-template-columns: 290px 1fr; gap: 32px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.slide .team-list dt { font-size: 27px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.team-list dd { color: var(--muted); font-size: 24px; line-height: 1.4; }
.team-list.compact { top: 192px; }
.team-list.compact > div { padding: 13px 0; }
.slide .team-list.compact dt { font-size: 25px; }
.team-list.compact dd { font-size: 22px; }

/* Team sharing questions */
.slide .question-title { position: absolute; left: 64px; top: 210px; width: 1100px; font-size: 60px; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.team-names { position: absolute; left: 64px; top: 590px; max-width: 1152px; color: var(--accent); font-size: 22px; font-weight: 700; }

/* Community and volunteers */
.slide .volunteer-questions { position: absolute; left: 64px; top: 220px; width: 1152px; }
.volunteer-questions > div { padding: 22px 0; border-top: 1px solid var(--line); }
.slide .volunteer-questions h3 { color: var(--muted); font-size: 22px; font-weight: 700; line-height: 1.3; }
.volunteer-questions p { font-size: 36px; font-weight: 500; line-height: 1.3; padding-top: 12px; letter-spacing: -.01em; }
/* A small fact under the answers (e.g. first donor): accent label, quieter text. */
.slide .volunteer-questions .donor-note h3 { color: var(--accent); }
.volunteer-questions .donor-note p { font-size: 26px; padding-top: 8px; }

/* Q&A (dark) */
.slide .qa-title { position: absolute; left: 64px; top: 140px; font-size: 120px; font-weight: 800; line-height: 1.05; letter-spacing: -.045em; }
.qa-question { position: absolute; top: 320px; left: 64px; width: 1100px; font-size: 46px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.qa .website-link { top: 604px; }

/* Verse block: label, quotation and reference together, anchored above the footer */
.verse { position: absolute; left: 64px; bottom: 88px; width: 1080px; padding-left: 28px; border-left: 3px solid var(--accent); }
.verse .scripture { font-size: 30px; line-height: 1.45; }
.verse .reference { position: static; margin-top: 14px; color: var(--accent); font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.quote-label { margin-bottom: 10px; color: var(--accent); font-size: 15px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* What can we learn? */
.quotes .principle-message { top: 178px; color: var(--ink); font-weight: 500; }
.einstein { position: absolute; left: 64px; top: 262px; width: 1050px; color: var(--muted); }
.einstein blockquote { font-size: 28px; font-style: italic; line-height: 1.4; }
/* Chinese has no true italic; slanted CJK glyphs are synthetic. */
html:lang(zh-Hans) .einstein blockquote { font-style: normal; }
.einstein .quote-credit { margin-top: 12px; font-size: 16px; font-weight: 600; }

/* Principle slides */
.slide .principle-title { position: absolute; left: 64px; top: 96px; width: 1120px; font-size: 52px; font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
.principle-message { position: absolute; left: 64px; top: 262px; width: 1100px; color: var(--muted); font-size: 32px; line-height: 1.35; }
.authority-note { position: absolute; left: 64px; top: 392px; width: 1152px; }
.note-label { color: var(--muted); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
html:lang(zh-Hans) :is(.note-label, .vision-kicker, .quote-label) { letter-spacing: .08em; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 16px 0 26px; }
.chips li { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 22px; line-height: 1.3; }
.note-end { max-width: 1000px; font-size: 24px; line-height: 1.45; }
.ai-boundary { position: absolute; left: 64px; top: 270px; width: 1100px; color: var(--muted); font-size: 28px; line-height: 1.4; }
.steps { position: absolute; left: 64px; top: 112px; width: 1152px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.steps > div { padding-top: 22px; border-top: 1px solid var(--line); }
.slide .step-number { color: var(--accent); font-size: 112px; font-weight: 800; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.step-number small { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.step-text { margin-top: 18px; font-size: 28px; font-weight: 500; line-height: 1.4; }

/* Product slides (dark): a short header, then one large media area. No verses. */
.slide .product-title { position: absolute; left: 64px; top: 88px; width: 780px; font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.product-description { position: absolute; left: 64px; top: 144px; width: 780px; color: var(--muted); font-size: 22px; line-height: 1.4; }
.single .product-image, .product-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b1020; }
.single .product-image, .single .product-video { position: absolute; left: 64px; top: 204px; width: 1152px; height: 440px; border-radius: 14px; }
.duo-grid { position: absolute; left: 64px; top: 216px; width: 1152px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.duo-grid figure, .story-pair { margin: 0; }
.duo-grid img, .duo-grid video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #0b1020; }
.duo-grid figcaption { margin-top: 14px; color: var(--muted); font-size: 18px; font-weight: 600; }
.story .product-title, .story .product-description { width: 1152px; }
.story-grid { position: absolute; left: 64px; top: 210px; width: 1152px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.story-images { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.story-image { position: relative; }
.story-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #fff; }
.story-tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 26, 46, .78); color: #fff; font-size: 13px; font-weight: 700; }
.story-pair figcaption { margin-top: 14px; color: var(--muted); font-size: 18px; line-height: 1.45; }
/* Page recordings are 16:9: the video takes the left, the QR card heads the right-hand column. */
.side .product-video { position: absolute; left: 64px; top: 204px; width: 782px; height: 440px; border-radius: 14px; }
.side .qr-card { top: 204px; right: 64px; width: 330px; flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
.side .qr-card img { width: 150px; height: 150px; }
.side .qr-card figcaption b { font-size: 20px; }
.qr-card { position: absolute; top: 36px; right: 64px; margin: 0; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.qr-card img { width: 84px; height: 84px; border-radius: 6px; }
.qr-card figcaption span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.qr-card figcaption b { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; }

/* Pricing */
.pricing-table { position: absolute; top: 214px; left: 64px; width: 1152px; border-collapse: collapse; table-layout: fixed; font-size: 26px; line-height: 1.3; }
.pricing-table col.format { width: 40%; }
.pricing-table col:not(.format) { width: 20%; }
.pricing-table th, .pricing-table td { padding: 22px 16px 22px 0; text-align: left; font-weight: 400; vertical-align: middle; border-bottom: 1px solid var(--line); }
.pricing-table thead th { padding-top: 0; padding-bottom: 14px; color: var(--muted); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.pricing-table tbody th { font-weight: 600; }
.pricing-table tbody td:last-child { font-weight: 700; color: var(--accent); }
.pricing-note { position: absolute; top: 600px; left: 64px; width: 1100px; color: var(--muted); font-size: 21px; line-height: 1.4; }

/* Taking part */
.participation-list { position: absolute; left: 64px; top: 228px; width: 1152px; border-bottom: 1px solid var(--line); }
.participation-list > div { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.slide .participation-list dt { color: var(--accent); font-size: 24px; font-weight: 700; line-height: 1.3; }
.participation-list dd { font-size: 30px; font-weight: 500; line-height: 1.4; }

/* Funding */
.funding-list { position: absolute; left: 64px; top: 220px; width: 1152px; list-style: none; padding: 0; font-size: 32px; font-weight: 500; line-height: 1.35; }
.funding-list li { position: relative; padding-left: 30px; }
.funding-list li::before { content: ""; position: absolute; left: 0; top: .52em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.funding-list li + li { margin-top: 16px; }
.slide .future { position: absolute; left: 64px; top: 552px; width: 1152px; color: var(--accent); font-size: 26px; font-weight: 700; line-height: 1.3; }
.disclosure { position: absolute; left: 64px; top: 612px; width: 1050px; color: var(--muted); font-size: 18px; line-height: 1.4; }

/* Footer, contents, notices */
.navigation { position: relative; height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 4px 24px max(8px, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.keyboard-hint { position: absolute; left: 24px; font-size: 12px; color: var(--muted); }
.pager { display: flex; align-items: center; gap: 22px; }
.pager button { height: 42px; width: 48px; border: 0; border-radius: 8px; background: transparent; font-size: 24px; }
#page-counter { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 56px; text-align: center; }
.progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: #e4e2db; }
#progress-fill { display: block; height: 100%; width: 3.4483%; background: var(--accent); transition: width 150ms ease; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.notice { position: fixed; z-index: 5; bottom: 70px; left: 16px; right: 16px; margin: 0; padding: 14px 18px; background: var(--ink); color: #fff; border-radius: 8px; text-align: center; font-size: 14px; }
dialog { color: var(--ink); background: var(--paper); width: min(760px, calc(100% - 32px)); max-height: min(800px, 85dvh); border: 1px solid var(--line); padding: 0; border-radius: 12px; box-shadow: 0 20px 90px rgba(20, 26, 46, .3); }
dialog::backdrop { background: rgba(20, 26, 46, .62); }
.dialog-header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 22px; margin: 0; font-weight: 700; }
.dialog-header button { width: 42px; height: 42px; font-size: 28px; border: 0; background: transparent; }
.slide-index { list-style: none; margin: 0; padding: 10px 14px 20px; }
.slide-index button { width: 100%; display: flex; align-items: baseline; gap: 20px; padding: 14px 12px; text-align: left; font-size: 16px; line-height: 1.45; border: 0; background: transparent; border-radius: 8px; }
.slide-index button:hover { background: #f1eee6; }
.slide-index button[aria-current="page"] { background: var(--ink); color: #fff; }
.index-number { min-width: 28px; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.slide-index button[aria-current="page"] .index-number { color: #f2ad5b; }

@media (max-width: 650px) {
  .toolbar { gap: 8px; min-height: 56px; padding: 7px 12px; }
  .toolbar-brand { font-size: 14px; }
  .toolbar-caption, .keyboard-hint { display: none; }
  .toolbar-actions { gap: 3px; }
  .toolbar button { padding: 7px 8px; font-size: 12px; white-space: nowrap; }
  .toolbar-actions { flex-shrink: 0; }
  /* 16px keeps iOS from zooming in when the picker opens; it truncates instead of pushing the controls off-screen. */
  .deck-select { min-width: 0; padding: 6px 8px; }
  .language-switch button { min-width: 36px; }
  .viewport { padding: 8px; }
  .navigation { height: 55px; }
  .pager { gap: 28px; }
}
@media (max-width: 480px) {
  .toolbar-brand { display: none; }
}
@media (max-height: 500px) {
  .toolbar { min-height: 44px; padding-top: 2px; padding-bottom: 2px; }
  .viewport { padding: 6px 16px; }
  .navigation { height: 43px; padding: 0 16px 3px; }
  .pager button { height: 36px; }
}
@media (prefers-reduced-motion: reduce) { #progress-fill { transition: none; } }
@media print {
  @page { size: landscape; margin: 0; }
  body, .presentation-app, .viewport, .stage-frame, .stage { display: block; width: 100%; height: auto; padding: 0; margin: 0; position: static; transform: none; box-shadow: none; }
  .toolbar, .navigation, .notice, dialog, .sr-only { display: none !important; }
  .slide, .slide[hidden] { display: block !important; position: relative; break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .slide.off-deck { display: none !important; }
}
