/* Karsa Education Fund — demo konsep TIKUMA (yayasan pendidikan fiktif untuk sekolah negeri di Kabupaten Sukamaju).
   Hangat dan percaya diri: biru dongker, merah bata untuk donasi, kuning matahari untuk sorotan, Newsreader untuk
   judul, Public Sans untuk teks. Sudut membulat, tombol pil. */
@font-face { font-family: Newsreader; src: url(/karsa/fonts/newsreader.woff2) format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url(/karsa/fonts/newsreader-italic.woff2) format('woff2'); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/karsa/fonts/public-sans.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --navy: #102a43; --navy-2: #1b3a5c; --navy-3: #0b1f33; --red: #e5533d; --red-2: #c9412c; --sun: #f6c445; --sky: #7cc4e8; --mint: #8fd3b0;
  --cream: #f6f3ec; --paper: #ffffff; --ink: #0f1d2c; --muted: #5b6776; --line: rgba(16, 42, 67, .14);
  --serif: Newsreader, Georgia, 'Times New Roman', serif; --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --hdr-h: 84px;
  --fx-paper: var(--navy); --fx-ink: #fff; --fx-accent: var(--red); --fx-label-bg: var(--sun); --fx-label-fg: var(--navy);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(1280px, 100% - 64px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.06; }
h2 { font-size: clamp(38px, 4.4vw, 64px); color: var(--navy); }
h2 em { font-style: italic; color: var(--red); }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.eyebrow.light { color: var(--sun); }

/* tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 99px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-2); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); }
.btn.sun { background: var(--sun); color: var(--navy); }
.btn.sun:hover { background: #ffd566; }
.btn.line { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.line:hover { background: rgba(255, 255, 255, .12); }
.btn.line.dark { color: var(--navy); }
.btn.white { background: #fff; color: var(--navy); padding: 0 24px 0 6px; height: 56px; gap: 14px; }
.btn.white .dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; }
.btn.white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn.wide { width: 100%; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.circle { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .3s, color .3s; }
.circle svg { width: 19px; height: 19px; }
.circle:hover { background: var(--sun); color: var(--navy); box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.text-link svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* pengumuman + header */
.topbar { position: relative; z-index: 31; background: var(--navy-3); color: #fff; font-size: 14px; }
.topbar p { display: flex; justify-content: center; align-items: center; gap: .4em; flex-wrap: wrap; padding: 10px 56px; text-align: center; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--sun); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.topbar a svg { width: 15px; height: 15px; }
.topbar button { position: absolute; right: 12px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.topbar button:hover { background: rgba(255, 255, 255, .12); }
.topbar button svg { width: 16px; height: 16px; }
.hdr { position: sticky; top: 0; z-index: 30; height: var(--hdr-h); color: #fff; transition: background-color .4s, color .4s, box-shadow .4s, transform .6s var(--ease); }
.hdr.solid { background: #fff; color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.hdr.hide { transform: translateY(-101%); }
.hdr-in { display: flex; justify-content: space-between; align-items: center; height: 100%; width: min(1440px, 100% - 40px); margin-inline: auto; }
.logo { display: flex; align-items: center; gap: 12px; --mark-fg: var(--sun); }
.logo svg { width: 42px; height: 42px; color: var(--navy); }
.hdr:not(.solid) .logo svg { color: #fff; --mark-fg: var(--red); }
.logo span { display: grid; line-height: 1.05; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.logo b { font: 600 25px/1 var(--serif); letter-spacing: -.01em; text-transform: none; }
.hdr-r { display: flex; align-items: center; gap: 10px; }

/* hero */
.hero { position: relative; margin-top: calc(-1 * var(--hdr-h)); height: min(94vh, 880px); min-height: 600px; color: #fff; overflow: hidden; background: var(--navy); }
.hero-img, .hero-img picture { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.motion .hero-img img { animation: heroZoom 2.4s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.12); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 31, 51, .88) 0%, rgba(11, 31, 51, .55) 45%, rgba(11, 31, 51, .05) 80%), linear-gradient(0deg, rgba(11, 31, 51, .5), transparent 40%); }
.hero-in { position: absolute; left: 0; right: 0; bottom: clamp(60px, 10vh, 110px); z-index: 1; display: grid; justify-items: start; gap: 36px; }
.hero h1 { font-size: clamp(46px, 6vw, 94px); max-width: 13.5ch; line-height: 1.02; }
.hero mark { background: none; color: var(--sun); font-style: italic; }
.badge { position: absolute; right: max(32px, calc((100% - 1280px) / 2)); bottom: clamp(60px, 10vh, 110px); z-index: 1; width: 150px; height: 150px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; font: 700 10.4px/1 var(--sans); letter-spacing: .18em; fill: currentColor; }
.motion .badge svg { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge b { font: 500 28px/.9 var(--serif); text-align: center; }

/* kenalan */
.meet { padding: 130px 0 100px; display: grid; gap: 30px; }
.meet-text { font: 400 clamp(30px, 3.3vw, 50px)/1.2 var(--serif); color: var(--navy); max-width: 32ch; letter-spacing: -.01em; }
.meet-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--muted); }
.since { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 99px; background: var(--sun); color: var(--navy); font-size: 14px; font-weight: 700; }

/* dukungan terarah */
.support { display: grid; grid-template-columns: .9fr 1fr; gap: 80px; padding: 30px 0 140px; align-items: start; }
.sup-frame { position: sticky; top: 110px; aspect-ratio: 760 / 900; border-radius: 24px; overflow: hidden; background: var(--cream); }
.sup-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s, transform 1.4s var(--ease); }
.sup-frame img.on { opacity: 1; transform: none; }
.sup-body { display: grid; gap: 24px; padding-top: 20px; }
.sup-list { margin-top: 20px; border-top: 1px solid var(--line); }
.sup-list li { border-bottom: 1px solid var(--line); }
.sup-list button { width: 100%; display: grid; grid-template-columns: 48px 1fr 26px; align-items: center; padding: 22px 0; font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--serif); color: var(--navy); transition: color .3s, padding .6s var(--ease); }
.sup-list button span { font: 700 13px/1 var(--sans); color: var(--red); letter-spacing: .06em; }
.sup-list button svg { width: 22px; height: 22px; color: var(--red); transition: transform .5s var(--ease); }
.sup-list button:hover { padding-left: 10px; }
.sup-list li.on button svg { transform: rotate(45deg); }
.sup-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.sup-more p { overflow: hidden; padding-left: 48px; max-width: 52ch; color: var(--muted); }
.sup-list li.on .sup-more { grid-template-rows: 1fr; }
.sup-list li.on .sup-more p { padding-bottom: 24px; }

/* jangkauan (stabilo mengikuti scroll) */
.reach { background: var(--cream); padding: clamp(100px, 12vw, 170px) 0; }
.reach-text { font: 400 clamp(34px, 4.3vw, 66px)/1.16 var(--serif); color: var(--navy); letter-spacing: -.015em; }
.reach-text mark { color: inherit; background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 86% / var(--p, 100%) 42%; padding: 0 .06em; margin: 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.motion .reach-text mark { --p: 0%; }

/* angka */
.stats { padding: 110px 0 130px; }
.stats-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.stats-tabs button { position: relative; padding-top: 18px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .3s; }
.stats-tabs button::before, .stats-tabs button i { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--line); }
.stats-tabs button i { background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.stats-tabs button[aria-selected='true'] { color: var(--navy); }
.stats-tabs button[aria-selected='true'] i { transform: scaleX(var(--p, 1)); }
.stat-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.stat-img { position: relative; aspect-ratio: 9 / 10; border-radius: 24px; overflow: hidden; background: var(--cream); }
.stat-img picture { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.stat-img picture.on { opacity: 1; }
.stat-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 2s var(--ease); }
.stat-img picture.on img { transform: none; }
.stat-copy { display: grid; gap: 24px; }
.stat-big { font: 400 clamp(84px, 11vw, 176px)/.9 var(--serif); color: var(--navy); letter-spacing: -.035em; font-variant-numeric: lining-nums; }
.stat-text { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 34ch; color: var(--ink); }
.motion .stat-copy.swap .stat-big, .motion .stat-copy.swap .stat-text { animation: statIn .8s var(--ease) both; }
.motion .stat-copy.swap .stat-text { animation-delay: .08s; }
@keyframes statIn { from { opacity: 0; transform: translateY(24px); } }

/* proyek kelas */
.projects { padding: 120px 0 140px; }
.proj-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: end; margin-bottom: 44px; }
.proj-head > div { display: grid; gap: 16px; }
.proj-head > .text-link { justify-self: end; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border-radius: 20px; background: var(--cream); }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--navy); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .chips label span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, color .25s; cursor: pointer; }
.chips button:hover, .chips label:hover span { box-shadow: inset 0 0 0 1.5px var(--navy); }
.chips button[aria-pressed='true'], .chips input:checked + span { background: var(--navy); color: #fff; box-shadow: none; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips input:focus-visible + span { outline: 2.5px solid var(--red); outline-offset: 2px; }
.sel select { height: 40px; padding: 0 36px 0 16px; border-radius: 99px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23102a43' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; font-size: 14px; font-weight: 600; color: var(--navy); appearance: none; cursor: pointer; }
.proj-count { margin: 22px 0 18px; font-size: 14px; color: var(--muted); }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.proj { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s, transform .5s var(--ease); }
.proj:hover { box-shadow: 0 0 0 1px var(--line), 0 24px 44px -26px rgba(16, 42, 67, .45); transform: translateY(-4px); }
.proj-img { position: relative; aspect-ratio: 640 / 440; overflow: hidden; background: var(--cream); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj:hover .proj-img img { transform: scale(1.05); }
.proj-img .subj { position: absolute; left: 14px; top: 14px; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.proj-b { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.proj-b h3 { font-size: 25px; color: var(--navy); line-height: 1.12; }
.proj-b .who { font-size: 14px; color: var(--muted); }
.meter { height: 8px; border-radius: 8px; background: var(--cream); overflow: hidden; margin-top: auto; }
.meter i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--sun), var(--red)); transform-origin: 0 50%; transition: transform 1.2s var(--ease); }
.nums { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.nums b { color: var(--navy); }
.proj-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.proj-f small { font-size: 13px; color: var(--muted); }
.proj-f .btn.added { background: var(--mint); color: var(--navy); }
.proj.gone { display: none; }
.proj-empty { padding: 60px 0; text-align: center; font: italic 400 24px/1.3 var(--serif); color: var(--muted); }

/* hadiah */
.give { background: var(--navy); color: #fff; padding: 130px 0; }
.give-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.give-copy { display: grid; gap: 22px; position: sticky; top: 120px; }
.give h2 { color: #fff; }
.give h2 em { color: var(--sun); }
.give .lead { color: rgba(255, 255, 255, .72); max-width: 42ch; }
.donut-wrap { position: relative; width: min(340px, 100%); margin-top: 20px; }
.donut { width: 100%; height: auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 14; transition: stroke-dasharray .8s var(--ease), stroke-dashoffset .8s var(--ease); }
.donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-mid b { font: 400 clamp(28px, 2.6vw, 38px)/1 var(--serif); }
.donut-mid span { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 6px; }
.gift { display: grid; gap: 16px; padding: 32px; border-radius: 26px; background: #fff; color: var(--ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 99px; background: var(--cream); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; height: 42px; border-radius: 99px; font-size: 15px; font-weight: 600; color: var(--muted); transition: background-color .3s, color .3s; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2.5px solid var(--red); }
.g-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g-amounts button { text-align: center; height: 50px; border-radius: 14px; font-size: 14.5px; font-weight: 700; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .25s, color .25s, box-shadow .25s; }
.g-amounts button:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.g-amounts button[aria-pressed='true'] { background: var(--sun); box-shadow: none; }
.g-custom { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.g-custom:focus-within { box-shadow: inset 0 0 0 2px var(--navy); }
.g-custom span { font-weight: 700; color: var(--muted); }
.g-custom input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 100%; font-size: 16px; }
.picks { display: grid; gap: 8px; }
.picks:empty { display: none; }
.picks li { display: grid; grid-template-columns: 44px 1fr auto 30px; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--cream); }
.picks img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.picks b { display: block; font-size: 14px; line-height: 1.25; color: var(--navy); }
.picks small { font-size: 12.5px; color: var(--muted); }
.picks .amt { font-size: 14px; font-weight: 700; color: var(--navy); }
.picks button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); }
.picks button:hover { background: #fff; color: var(--red); }
.picks button svg { width: 14px; height: 14px; }
.alloc { display: grid; gap: 14px; padding: 18px 0 6px; border-top: 1px solid var(--line); }
.alloc-h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.alloc-h button { font-size: 13px; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.fund { display: grid; gap: 6px; }
.fund-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; }
.fund-top b { font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.fund-top b i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.fund-top span { color: var(--muted); font-variant-numeric: tabular-nums; }
.fund input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --v: 25%; }
.fund input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(var(--c), var(--c)) no-repeat 0 0 / var(--v) 100%, var(--cream); }
.fund input[type='range']::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(var(--c), var(--c)) no-repeat 0 0 / var(--v) 100%, var(--cream); }
.fund input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--navy), 0 4px 10px rgba(16, 42, 67, .25); }
.fund input[type='range']::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--navy), 0 4px 10px rgba(16, 42, 67, .25); }
.g-note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* guru terbaik */
.toy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding: 140px 0; align-items: start; }
.toy-img { position: sticky; top: 110px; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); }
.toy-img img { width: 100%; height: 100%; object-fit: cover; }
.toy-body { display: grid; gap: 22px; }
.nom { display: grid; gap: 18px; margin-top: 12px; padding: 30px; border-radius: 24px; background: var(--cream); }
.nom label, .nom legend { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); position: relative; }
.nom legend { margin-bottom: 8px; }
.nom input[type='text'], .nom select, .nom textarea { width: 100%; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 0 16px; font-weight: 400; color: var(--ink); outline: none; transition: box-shadow .25s; }
.nom input[type='text'], .nom select { height: 50px; }
.nom select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23102a43' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.nom textarea { padding: 14px 16px; resize: vertical; min-height: 120px; line-height: 1.5; }
.nom :is(input, select, textarea):focus { box-shadow: inset 0 0 0 2px var(--navy); }
.nom .invalid { box-shadow: inset 0 0 0 2px var(--red) !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.count { position: absolute; right: 0; top: 0; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.nom-err { padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #9c2a19; font-size: 14px; }
.nom .btn { justify-self: start; }
.nom-ok { display: grid; gap: 14px; justify-items: start; padding: 34px; border-radius: 24px; background: var(--cream); outline: none; }
.nom-ok h3 { font-size: 32px; color: var(--navy); }
.nom-ok p { color: var(--muted); }
.tick { width: 58px; height: 58px; }
.tick circle { fill: var(--mint); }
.tick path { fill: none; stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.motion .nom-ok:not([hidden]) .tick circle { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: center; }
.motion .nom-ok:not([hidden]) .tick path { animation: draw .6s .25s var(--ease) both; }
@keyframes pop { from { transform: scale(.3); } }
@keyframes draw { from { stroke-dashoffset: 40; } }

/* berita */
.news { padding: 20px 0 140px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.card button { display: grid; gap: 12px; width: 100%; }
.card-img { border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--cream); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card button:hover .card-img img { transform: scale(1.05); }
.tag { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-top: 6px; }
.card h3 { font-size: 26px; color: var(--navy); line-height: 1.15; }
.card button:hover h3 { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.events { padding: 26px; border-radius: 20px; background: var(--cream); display: grid; gap: 18px; }
.events .tag { margin: 0; }
.events ul { display: grid; gap: 18px; }
.events li { display: grid; grid-template-columns: 62px 1fr; gap: 16px; align-items: start; }
.events time { display: grid; place-items: center; height: 66px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding-top: 4px; }
.events time b { font: 500 28px/1 var(--serif); letter-spacing: 0; }
.events h3 { font: 600 16px/1.35 var(--sans); color: var(--navy); letter-spacing: 0; }
.events p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* mitra */
.partner { background: var(--sun); padding: 110px 0; }
.partner-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: end; }
.partner h2 { color: var(--navy); }
.partner h2 em { color: var(--red); }
.partner-r { display: grid; gap: 24px; justify-items: start; color: var(--navy); font-size: 18px; }
.partner .btn.sun { background: var(--navy); color: #fff; }
.partner .btn.sun:hover { background: var(--navy-2); }

/* keranjang mengambang */
.basket { position: fixed; right: 16px; bottom: 16px; z-index: 45; }
.basket a { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 16px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 16px 34px -14px rgba(11, 31, 51, .6); }
.basket svg { width: 18px; height: 18px; color: var(--red); }
.motion .basket:not([hidden]) { animation: basketIn .6s var(--ease); }
.basket.bump a { animation: bump .5s var(--ease); }
@keyframes basketIn { from { transform: translateY(120%); } }
@keyframes bump { 40% { transform: scale(1.08); } }

/* footer */
.foot { background: var(--navy-3); color: rgba(255, 255, 255, .72); padding: 90px 0 96px; }
.foot-top { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.logo.big svg { width: 60px; height: 60px; color: #fff; --mark-fg: var(--red); }
.logo.big { color: #fff; }
.logo.big b { font-size: 34px; }
.foot-news { display: grid; gap: 12px; width: min(460px, 100%); }
.foot-news label { font-size: 15px; color: #fff; }
.foot-news div { display: flex; gap: 8px; }
.foot-news input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: #fff; outline: none; }
.foot-news input::placeholder { color: rgba(255, 255, 255, .5); }
.foot-news input:focus { box-shadow: inset 0 0 0 2px var(--sun); }
.foot-news p { color: var(--sun); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 44px; }
.foot h3 { font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.foot li { padding: 4px 0; font-size: 15px; }
.foot li :is(a, button):hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.credits { margin-top: 50px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.credits summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #fff; }
.credits p { margin-top: 10px; max-width: 920px; }
.credits a { text-decoration: underline; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 24px; font-size: 13px; }
.legal a { text-decoration: underline; }
.demo { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 99px; background: #fff; color: #111; font: 600 13px/1.2 system-ui, sans-serif; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); }
.demo i { width: 8px; height: 8px; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, .18); }
.demo span { color: #666; font-weight: 400; }

/* dialog */
dialog { border: 0; padding: 0; max-width: none; max-height: none; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(11, 31, 51, .6); }
.motion dialog[open]::backdrop { animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; } }
body.lock { overflow: hidden; }
.menu { width: 100vw; height: 100vh; height: 100dvh; margin: 0; display: none; flex-direction: column; background: var(--navy); color: #fff; padding: 0 max(20px, calc((100vw - 1440px) / 2 + 20px)) 30px; }
.menu[open] { display: flex; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: var(--hdr-h); }
.menu-top .logo svg { color: #fff; --mark-fg: var(--red); }
.menu-body { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.menu-nav { display: grid; }
.menu-nav a { padding: 12px 0; font: 400 clamp(40px, 5.6vw, 80px)/1.05 var(--serif); letter-spacing: -.02em; border-bottom: 1px solid rgba(255, 255, 255, .14); transition: color .3s, padding .6s var(--ease); }
.menu-nav a:hover { color: var(--sun); padding-left: 16px; font-style: italic; }
.menu-card { display: grid; gap: 20px; justify-items: start; padding: 34px; border-radius: 24px; background: var(--sun); color: var(--navy); font: 400 28px/1.2 var(--serif); }
.motion .menu[open] { animation: fade .4s ease; }
.motion .menu[open] .menu-nav a { animation: statIn .8s var(--ease) both; }
.motion .menu[open] .menu-nav a:nth-child(2) { animation-delay: .05s; }
.motion .menu[open] .menu-nav a:nth-child(3) { animation-delay: .1s; }
.motion .menu[open] .menu-nav a:nth-child(4) { animation-delay: .15s; }
.note { margin: auto; width: min(540px, 100% - 32px); padding: 40px; border-radius: 26px; background: #fff; }
.note[open] { display: grid; gap: 16px; }
.motion .note[open] { animation: statIn .6s var(--ease); }
.note h3 { font-size: 36px; color: var(--navy); }
.note p { color: var(--muted); }
.note .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; padding: 14px 22px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 14px; transition: transform .6s var(--ease), visibility 0s .6s; pointer-events: none; white-space: nowrap; }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }

/* responsif */
@media (max-width: 1100px) {
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .events { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .support, .give-grid, .toy, .proj-head, .partner-in, .stat-panel, .menu-body { grid-template-columns: 1fr; }
  .sup-frame, .toy-img, .give-copy { position: relative; top: 0; }
  .sup-frame { aspect-ratio: 4 / 3; }
  .toy-img { aspect-ratio: 4 / 3; }
  .support { gap: 40px; }
  .stats-tabs { grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
  .stat-panel { gap: 36px; }
  .stat-img { aspect-ratio: 4 / 3; }
  .menu-card { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --hdr-h: 68px; }
  .wrap { width: calc(100% - 32px); }
  .topbar { font-size: 13px; }
  .topbar p { padding: 9px 46px 9px 16px; justify-content: flex-start; text-align: left; }
  .hdr-in { width: calc(100% - 24px); }
  .hide-s { display: none; }
  .hdr-r { gap: 6px; }
  .hdr .btn.red { height: 42px; padding: 0 16px; font-size: 14px; }
  .circle { width: 42px; height: 42px; }
  .hdr .circle[data-open-note] { display: none; }
  .logo svg { width: 36px; height: 36px; }
  .logo b { font-size: 21px; }
  .logo span { font-size: 10px; }
  .hero { height: 86vh; min-height: 560px; max-height: 780px; }
  .hero::after { background: linear-gradient(0deg, rgba(11, 31, 51, .92) 10%, rgba(11, 31, 51, .35) 60%, rgba(11, 31, 51, .15)); }
  .hero-in { bottom: 44px; gap: 26px; }
  .hero h1 { font-size: clamp(40px, 11vw, 52px); }
  .badge { top: calc(var(--hdr-h) + 18px); bottom: auto; right: 16px; width: 96px; height: 96px; }
  .badge svg { font-size: 11px; }
  .badge b { font-size: 19px; }
  .meet { padding: 90px 0 70px; }
  .support { padding-bottom: 100px; }
  .sup-list button { grid-template-columns: 36px 1fr 24px; padding: 18px 0; }
  .sup-more p { padding-left: 36px; }
  .stats { padding: 80px 0 100px; }
  .stats-tabs { margin-bottom: 34px; }
  .stats-tabs button { font-size: 14px; }
  .projects { padding: 90px 0 100px; }
  .filters { padding: 10px; border-radius: 18px; }
  .chips { overflow-x: auto; flex-wrap: nowrap; width: 100%; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .sel { flex: 1; }
  .sel select { width: 100%; }
  .proj-grid { grid-template-columns: 1fr; gap: 18px; }
  .give { padding: 90px 0; }
  .give-grid { gap: 40px; }
  .donut-wrap { width: 230px; }
  .gift { padding: 22px 16px; border-radius: 22px; }
  .g-amounts { grid-template-columns: 1fr 1fr; }
  .picks li { grid-template-columns: 40px 1fr auto 28px; gap: 10px; }
  .toy { padding: 90px 0; gap: 34px; }
  .nom { padding: 20px 16px; }
  .row2 { grid-template-columns: 1fr; }
  .news { padding-bottom: 100px; }
  .news-grid { grid-template-columns: 1fr; gap: 34px; }
  .partner { padding: 80px 0; }
  .basket { right: 12px; bottom: 76px; }
  .foot { padding: 70px 0 120px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-news div { flex-direction: column; }
  .foot-news input { flex: none; }
  .note { padding: 28px 22px; }
  .menu-nav a { font-size: 40px; }
}
