:root {
  --ink: #12100d;
  --ink-2: #1c1915;
  --cream: #f7f1e8;
  --muted: #b9ad9c;
  --sun: #e8a33d;
  --sun-2: #f3c77a;
  --brown: #2b2117;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body { background: var(--ink); }
.reveal { font-family: var(--sans); color: var(--cream); font-size: 30px; }
.reveal .slides { text-align: left; }
.reveal .slides section { height: 100%; width: 100%; padding: 0; box-sizing: border-box; }
.reveal .slides section.dark { background: transparent; }
.reveal .backgrounds { background: var(--ink); }

/* typography */
.reveal h1, .reveal h2 { font-family: var(--serif); font-weight: 400; color: var(--cream); text-transform: none; letter-spacing: -0.02em; margin: 0; }
.reveal h1 { font-size: 112px; line-height: 1.0; }
.reveal h2 { font-size: 64px; line-height: 1.08; }
.reveal h2.huge { font-size: 96px; line-height: 1.02; }
.reveal em { font-style: italic; color: var(--sun-2); }
.eyebrow { font-size: 18px; letter-spacing: .22em; text-transform: uppercase; color: var(--sun); font-weight: 600; margin: 0 0 28px; }
.lede { font-size: 28px; line-height: 1.5; color: #e6dccd; max-width: 900px; margin: 32px 0 0; }
.lede strong { color: var(--cream); font-weight: 600; }
.caption { font-size: 22px; color: var(--muted); margin-top: 40px; }

/* layout */
.content { position: absolute; inset: 0; padding: 110px 120px; box-sizing: border-box; z-index: 2; }
.content.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.content.center .lede { margin-left: auto; margin-right: auto; }
.content.narrow { padding: 0 260px; }
.content.vcenter { display: flex; flex-direction: column; justify-content: center; }
.content.left { display: flex; flex-direction: column; justify-content: center; }
.content.bottom-left { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 120px; }

/* photo shades */
.shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shade-left { background: linear-gradient(90deg, rgba(14,11,8,.92) 0%, rgba(14,11,8,.7) 38%, rgba(14,11,8,.05) 75%); }
.shade-bottom { background: linear-gradient(0deg, rgba(14,11,8,.92) 0%, rgba(14,11,8,.55) 40%, rgba(14,11,8,0) 70%); }
.shade-full { background: radial-gradient(ellipse at center, rgba(14,11,8,.72) 0%, rgba(14,11,8,.86) 100%); }

/* Ken Burns on photo backgrounds */
.reveal .slide-background.present .slide-background-content { animation: kenburns 16s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.09) translate(-1%, -1%); } }

/* quote */
.quote-mark { font-family: var(--serif); font-size: 220px; line-height: .6; color: var(--sun); margin: 0; height: 110px; }
blockquote { font-family: var(--serif); font-size: 64px; line-height: 1.2; font-style: italic; margin: 0; border: 0; box-shadow: none; width: auto; padding: 0; background: none; color: var(--cream); }

/* big number */
.big-number { font-family: var(--serif); font-size: 400px; line-height: .9; color: var(--sun); font-weight: 600; letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--sun-2), var(--sun) 60%, #b8741f); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 56px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 296px; height: 2px; background: linear-gradient(90deg, transparent, var(--sun) 10%, var(--sun) 90%, transparent); opacity: .5; }
.timeline figure, .steps figure { margin: 0; }
.timeline img { width: 100%; height: 280px; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.timeline figcaption { font-size: 19px; line-height: 1.45; color: var(--muted); margin-top: 38px; position: relative; }
.timeline figcaption::before { content: ''; position: absolute; top: -27px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px rgba(232,163,61,.2); }
.timeline figcaption b, .steps figcaption b { display: block; color: var(--cream); font-family: var(--serif); font-weight: 400; font-size: 27px; margin-bottom: 6px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 56px; }
.steps img { width: 100%; height: 400px; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.steps figcaption { font-size: 19px; line-height: 1.45; color: var(--muted); margin-top: 22px; }
.steps figcaption span { color: var(--sun); font-weight: 600; letter-spacing: .1em; font-size: 16px; }

/* split */
.split-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 60px; padding: 0 0 0 120px; }
.split-photos { position: relative; height: 100%; }
.split-photos img { position: absolute; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.split-photos .p1 { top: 120px; left: 0; width: 470px; height: 350px; z-index: 2; }
.split-photos .p2 { top: 70px; right: 30px; width: 270px; height: 380px; }
.split-photos .p3 { bottom: 90px; right: 90px; width: 500px; height: 320px; z-index: 3; }
.present .split-photos img { animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.present .split-photos .p2 { animation-delay: .2s; }
.present .split-photos .p3 { animation-delay: .4s; }

/* mosaic */
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; filter: saturate(.85); }
.present .mosaic img { animation: tile 1s ease-out both; }
.mosaic-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; z-index: 2;
  background: radial-gradient(ellipse at center, rgba(14,11,8,.85) 0%, rgba(14,11,8,.55) 45%, rgba(14,11,8,.15) 80%); }
.mosaic-title h2 { font-size: 104px; }
.present .mosaic-title h2 { animation: rise 1.4s 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tile { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 80px; }
.stat { border-top: 2px solid var(--sun); padding-top: 28px; }
.stat-n { font-family: var(--serif); font-size: 150px; line-height: 1; color: var(--sun-2); }
.stat-n small { font-size: .5em; color: var(--sun); }
.stat-l { font-size: 22px; line-height: 1.45; color: #e6dccd; margin-top: 16px; }

/* thank you (light) */
.light .content { color: var(--brown); }
.light h2.thanks { color: var(--brown); font-size: 96px; margin-top: 44px; }
.light h2.thanks em { color: #d0802e; }
.light .lede { color: #5a4a3a; }
.logo-card { background: #fff; padding: 26px 44px; border-radius: 22px; box-shadow: 0 20px 50px rgba(80,50,20,.15); }
/* master wordmark is ~13% too wide: scale width by 0.887 */
.logo-card img.germonizer { display: block; height: 150px; width: calc(150px * 2340 / 869 * 0.887); object-fit: fill; }
.partners { display: flex; align-items: center; gap: 36px; margin-top: 56px; }
.partners div { text-align: center; }
.partners b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--brown); }
.partners span { display: block; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: #a6763f; margin-top: 6px; font-weight: 600; }
.partners .plus { font-size: 36px; color: #d0802e; }
.present .logo-card { animation: rise 1s cubic-bezier(.2,.8,.2,1) both; }

/* looking ahead */
.ahead { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 80px; }
.ahead > div { background: var(--ink-2); border: 1px solid rgba(232,163,61,.25); border-radius: 18px; padding: 40px 36px; }
.ahead span { color: var(--sun); font-weight: 600; letter-spacing: .1em; font-size: 18px; }
.ahead b { display: block; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; margin: 18px 0 14px; color: var(--cream); }
.ahead p { font-size: 22px; line-height: 1.5; color: var(--muted); margin: 0; }

/* close */
.salamat { font-size: 150px !important; color: var(--sun-2) !important; font-style: italic; }
.url { margin-top: 48px; font-size: 22px; letter-spacing: .18em; text-transform: uppercase; color: var(--sun); font-weight: 600; }

/* controls */
.reveal .progress { color: var(--sun); height: 4px; }
.reveal .controls { color: var(--sun); }

@media (prefers-reduced-motion: reduce) {
  .reveal .slide-background.present .slide-background-content, .present .mosaic img, .present .split-photos img, .present .mosaic-title h2 { animation: none !important; opacity: 1; }
}

/* 2026 proposal */
.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.plan > div, .join > div { background: var(--ink-2); border: 1px solid rgba(232,163,61,.25); border-radius: 18px; padding: 32px 34px; }
.plan span { color: var(--sun); font-weight: 600; letter-spacing: .1em; font-size: 16px; }
.plan b, .join b, .flow b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; margin: 12px 0 10px; color: var(--cream); }
.plan p, .join p, .flow p { font-size: 21px; line-height: 1.45; color: var(--muted); margin: 0; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 80px; position: relative; }
.flow::before { content: ''; position: absolute; left: 30px; right: 30px; top: 30px; height: 2px; background: linear-gradient(90deg, var(--sun), rgba(232,163,61,.2)); }
.flow span { position: relative; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sun); color: var(--ink); font-family: var(--serif); font-size: 28px; margin-bottom: 18px; }
.join { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.join b { margin-top: 0; }
.promise { margin-top: 56px; font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--sun-2); }

/* budget */
.budget-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; margin-top: 8px; }
.budget-total h2 { font-size: 56px; }
.total-n { font-family: var(--serif); font-size: 120px; line-height: 1; margin-top: 36px; font-weight: 600; letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--sun-2), var(--sun) 60%, #b8741f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.total-sub { font-size: 24px; color: var(--muted); margin: 10px 0 0; }
.per-child { margin-top: 36px; border-left: 3px solid var(--sun); padding-left: 22px; }
.per-child b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--cream); }
.per-child b small { font-size: .6em; color: var(--muted); }
.per-child span { font-size: 22px; color: #e6dccd; }
.reveal table.budget-table { width: 100%; border-collapse: collapse; font-size: 22px; margin: 0; }
.reveal .budget-table td { border: 0; border-bottom: 1px solid rgba(232,163,61,.18); padding: 14px 0; vertical-align: middle; }
.reveal .budget-table td:last-child { text-align: right; font-family: var(--serif); font-size: 28px; color: var(--sun-2); white-space: nowrap; }
.budget-table b { display: block; font-weight: 500; color: var(--cream); }
.budget-table small { display: block; font-size: 17px; color: var(--muted); margin-top: 3px; }
.reveal .budget-table tr.total td { border-bottom: 0; border-top: 2px solid var(--sun); padding-top: 18px; }
.reveal .budget-table tr.total td:last-child { font-size: 38px; color: var(--sun); }
.footnote { font-size: 16px; color: #8a7f70; margin-top: 28px; }
.plan.plan-4 { grid-template-columns: repeat(2, 1fr); }
.join.join-2 { grid-template-columns: repeat(2, 1fr); }
.ask { margin-top: 32px; border-left: 3px solid var(--sun); padding-left: 22px; }
.ask b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--cream); }
.ask span { font-size: 22px; line-height: 1.45; color: #e6dccd; }
.anchors { margin-top: 22px; font-size: 19px; color: var(--muted); }
.anchors b { color: var(--sun-2); font-weight: 600; }
.flow.flow-4 { grid-template-columns: repeat(4, 1fr); }

/* last year */
.gave { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.gave figure { margin: 0; }
.gave img { width: 100%; height: 230px; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 16px 34px rgba(0,0,0,.45); }
.gave figcaption { font-family: var(--serif); font-size: 25px; color: var(--cream); margin-top: 12px; }
.faces { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; }
.faces img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; }
.present .faces img { animation: tile 1s ease-out both; }
.present .faces img:nth-child(2) { animation-delay: .15s; } .present .faces img:nth-child(3) { animation-delay: .3s; }
.present .faces img:nth-child(4) { animation-delay: .45s; } .present .faces img:nth-child(5) { animation-delay: .6s; } .present .faces img:nth-child(6) { animation-delay: .75s; }
.faces-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 140px 120px 90px; z-index: 2; background: linear-gradient(0deg, rgba(14,11,8,.92), rgba(14,11,8,0)); }
.faces-title h2 { font-size: 80px; }
.present .faces-title h2 { animation: rise 1.2s 1.1s cubic-bezier(.2,.8,.2,1) both; }
.med-list { margin-top: 40px; display: grid; gap: 26px; }
.med-list b { display: block; margin-bottom: 6px;font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--sun); font-weight: 600; }
.med-list span { font-family: var(--serif); font-size: 26px; color: var(--cream); }
.med-photos { position: relative; height: 100%; }
.med-photos img { position: absolute; object-fit: cover; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.med-photos .m1 { top: 90px; left: 0; width: 420px; height: 420px; z-index: 2; }
.med-photos .m2 { top: 70px; right: 40px; width: 320px; height: 240px; }
.med-photos .m3 { bottom: 90px; left: 160px; width: 300px; height: 260px; z-index: 3; }
.med-photos .m4 { bottom: 120px; right: 20px; width: 300px; height: 300px; }
.present .med-photos img { animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.present .med-photos .m2 { animation-delay: .15s; } .present .med-photos .m3 { animation-delay: .3s; } .present .med-photos .m4 { animation-delay: .45s; }

/* what your gift becomes */
.gift-anchors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.gift-anchors > div { border-top: 2px solid var(--sun); padding-top: 26px; }
.ga-n { font-family: var(--serif); font-size: 120px; line-height: 1; font-weight: 600; letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--sun-2), var(--sun) 60%, #b8741f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gift-anchors b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--cream); margin-top: 14px; }
.gift-anchors span { display: block; font-size: 21px; color: var(--muted); margin-top: 6px; }
.gift-anchors + .ask { margin-top: 56px; }
.present .gift-anchors > div, .present .gift-anchors + .ask { animation: rise 1s cubic-bezier(.2,.8,.2,1) both; }
.present .gift-anchors > div:nth-child(2) { animation-delay: .25s; }
.present .gift-anchors > div:nth-child(3) { animation-delay: .5s; }
.present .gift-anchors + .ask { animation-delay: 1s; }

/* per-child + tiers */
.per-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; align-items: center; margin-top: 20px; }
.ga-n.big { font-size: 200px; }
.per-left b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--cream); margin-top: 10px; }
.per-left span { display: block; font-size: 22px; line-height: 1.45; color: var(--muted); margin-top: 10px; }
.per-right h2 { font-size: 54px; }
.tiers { margin-top: 40px; display: grid; gap: 22px; }
.tier { display: grid; grid-template-columns: 1fr 190px 170px; align-items: center; gap: 22px; }
.tier .bar { height: 14px; border-radius: 7px; background: rgba(232,163,61,.15); position: relative; overflow: hidden; }
.tier .bar::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: 7px; background: linear-gradient(90deg, #b8741f, var(--sun-2)); transform-origin: left; }
.present .tier .bar::after { animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.present .tier:nth-child(2) .bar::after { animation-delay: .25s; }
.present .tier:nth-child(3) .bar::after { animation-delay: .5s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tier b { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--cream); }
.tier span { font-family: var(--serif); font-size: 30px; color: var(--sun-2); text-align: right; }
.per-grid + .ask { margin-top: 56px; }
.present .per-grid + .ask { animation: rise 1s 1s cubic-bezier(.2,.8,.2,1) both; }
.per-left span.fixed { color: var(--sun-2); font-size: 20px; margin-top: 14px; }
.per-left span.buffer-note { font-size: 16px; color: #8a7f70; margin-top: 6px; }
.tier.goal b, .tier.goal span { color: var(--sun-2); }
.tier.goal b i { font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); background: var(--sun); padding: 3px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.tier { grid-template-columns: 1fr 290px 150px; }
.tier b { white-space: nowrap; }
.tier { grid-template-columns: 1fr 340px 150px; }

/* print / PDF: show final state of every animation */
html.print-pdf .mosaic img, html.print-pdf .faces img, html.print-pdf .split-photos img, html.print-pdf .med-photos img,
html.print-pdf .mosaic-title h2, html.print-pdf .faces-title h2, html.print-pdf .logo-card,
html.print-pdf .gift-anchors > div, html.print-pdf .ask, html.print-pdf .tier .bar::after { animation: none !important; opacity: 1 !important; transform: none !important; }
html.print-pdf .slide-background-content { animation: none !important; }

/* snapshot mode (?snapshot): final state of every slide, for PDF export */
html.snapshot *, html.snapshot *::before, html.snapshot *::after { animation: none !important; transition: none !important; }
html.snapshot .fragment { opacity: 1 !important; visibility: inherit !important; transform: none !important; }
html.snapshot .mosaic img, html.snapshot .faces img { opacity: 1 !important; }
