/* Association Al Jiwar — clean, product-like layout in the association's colours */
:root {
  --blue: #137ead; --blue-link: #0f6f9c; --blue-d: #0b5a7e; --blue-dd: #0a3f59;
  --orange: #f29c2b; --orange-t: #a05a00; --green: #0e7f5a;
  --sky: #5fb8e0; --leaf: #2bb383;
  --ink: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --soft: #f5f5f7; --bg: #fff;
  --blue-l: #e8f3f8; --orange-l: #fdf3e4; --green-l: #e7f5ef;
  --r: 18px; --r-lg: 28px; --surface: #fff; --nav-bg: rgba(255, 255, 255, .8); --bubble: #e9e9eb; --track: #e3e3e8;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Readex Pro", sans-serif;
}
[lang="ar"] { --font: "Readex Pro", -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
[lang="ar"] body { letter-spacing: 0; font-size: 18px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 .4em; color: var(--ink); text-wrap: balance; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.center, .a-center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 8px; top: 8px; z-index: 99; background: var(--surface); padding: 6px 12px; border-radius: 8px; }
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62em 1.25em; border-radius: 980px; border: 0; font: 500 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: background .2s, color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: .85em 1.6em; font-size: 1.02rem; }
.btn-sm { padding: .45em 1em; font-size: .85rem; }
.btn-blue, .btn-orange, .btn-pill, .btn-green { background: var(--blue); color: #fff; }
.btn-blue:hover, .btn-orange:hover, .btn-pill:hover, .btn-green:hover { background: var(--blue-d); }
.btn-outline, .btn-ghost, .btn-glass, .btn-white { background: transparent; color: var(--blue-link); box-shadow: inset 0 0 0 1px var(--blue-link); }
.btn-outline:hover, .btn-ghost:hover, .btn-glass:hover, .btn-white:hover { background: var(--blue-link); color: #fff; }
.btn-line { padding: 0; background: none; color: var(--blue-link); border-radius: 0; font-size: .95rem; }
.btn .ico { width: 1.05em; height: 1.05em; }
.alink { display: inline-flex; align-items: center; gap: .25em; font-size: 1.02rem; color: var(--blue-link); }
.alink span { transition: transform .2s; display: inline-block; }
.alink:hover { text-decoration: underline; } .alink:hover span { transform: translateX(3px); }
[dir="rtl"] .alink:hover span { transform: translateX(-3px); }
.pill-label { display: inline-block; font-size: .95rem; font-weight: 600; color: var(--orange-t); margin-bottom: 10px; letter-spacing: 0; }
.pill-label.light { color: #ffc879; }

/* ---------- global navigation ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); transition: transform .35s ease; }
.top.hide { transform: translateY(-100%); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; flex: 1; gap: 12px; }
.pill-nav { display: flex; gap: 2px; margin-inline: auto; }
.pill-nav a { color: rgba(29, 29, 31, .8); font-size: .82rem; padding: .4em .75em; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.pill-nav a:hover { color: var(--ink); text-decoration: none; }
.pill-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-end .btn { background: var(--blue); color: #fff; box-shadow: none; padding: .45em 1em; font-size: .82rem; }
.nav-end .btn:hover { background: var(--blue-d); }
.langs { display: flex; gap: 2px; }
.langs a { font-size: .78rem; color: var(--muted); padding: .35em .55em; border-radius: 6px; text-decoration: none; }
.langs a[lang="ar"] { font-family: "Readex Pro", sans-serif; font-size: .9rem; padding: .2em .55em; }
.langs a[aria-current] { color: var(--ink); font-weight: 600; background: var(--soft); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 1000px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 56px; height: calc(100vh - 56px); flex-direction: column; align-items: stretch; background: rgba(255, 255, 255, .97); backdrop-filter: blur(20px); padding: 20px 28px; }
  .nav.open { display: flex; animation: menuIn .3s ease; }
  .pill-nav { flex-direction: column; margin: 0; }
  .pill-nav a { font-size: 1.6rem; font-weight: 600; padding: .3em 0; color: var(--ink); letter-spacing: -.02em; }
  .nav.open .pill-nav a { animation: linkIn .45s cubic-bezier(.2, .8, .2, 1) both; }
  .nav.open .pill-nav a:nth-child(2) { animation-delay: .03s; } .nav.open .pill-nav a:nth-child(3) { animation-delay: .06s; } .nav.open .pill-nav a:nth-child(4) { animation-delay: .09s; }
  .nav.open .pill-nav a:nth-child(5) { animation-delay: .12s; } .nav.open .pill-nav a:nth-child(6) { animation-delay: .15s; } .nav.open .pill-nav a:nth-child(7) { animation-delay: .18s; }
  .nav-end { justify-content: space-between; margin-top: 24px; }
}
@keyframes menuIn { from { opacity: 0; } }
@keyframes linkIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- home: hero ---------- */
.a-hero { padding: clamp(56px, 9vw, 110px) 0 0; overflow: hidden; }
.a-eyebrow { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--orange-t); margin: 0 0 .6em; letter-spacing: -.01em; }
.a-title { font-size: clamp(2.6rem, 7vw, 5.2rem); max-width: 14em; margin: 0 auto .3em; }
.a-sub { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--muted); max-width: 34em; margin: 0 auto; line-height: 1.45; }
.a-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 30px; }
.a-visual { margin-top: clamp(40px, 6vw, 70px); }
.a-stack { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 22px); padding: 0 20px; }
.a-shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .35); }
.a-shot img { width: 100%; height: 100%; object-fit: cover; }
.a-shot.s0, .a-shot.s2 { width: clamp(130px, 22vw, 260px); aspect-ratio: 3 / 4.2; }
.a-shot.s1 { width: clamp(170px, 30vw, 340px); aspect-ratio: 3 / 4.2; }
.a-shot.s0 { transform: translateY(-30px); } .a-shot.s2 { transform: translateY(-60px); }
@supports (animation-timeline: view()) {
  .a-stack { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes rise { from { transform: translateY(80px) scale(.92); opacity: .4; } to { transform: none; opacity: 1; } }
}

/* ---------- home: activity tiles ---------- */
.a-tiles { padding: 12px 0; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a-tile { background: var(--soft); border-radius: var(--r); min-height: 540px; display: flex; flex-direction: column; text-align: center; overflow: hidden; }
.a-tile-text { padding: 48px 32px 0; }
.a-tile h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.a-tile p { color: var(--muted); font-size: 1.05rem; max-width: 26em; margin: 0 auto 1em; }
.a-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; }
.a-tile-visual { flex: 1; display: grid; place-items: end center; padding-top: 24px; }
.a-tile-visual img { width: 100%; height: 280px; object-fit: cover; }
.a-ico { width: 170px; height: 170px; margin-bottom: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--blue); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.a-ico .ico { width: 76px; height: 76px; stroke-width: 1.2; }
.a-tile:hover .a-ico { transform: scale(1.06) rotate(-4deg); }
.a-tile.t1 { background: #000; } .a-tile.t1 h2 { color: #fff; } .a-tile.t1 p { color: #a1a1a6; } .a-tile.t1 .alink { color: var(--sky); }
.a-tile.t1 .a-ico { background: #1d1d1f; color: var(--orange); }
.a-tile.t2 { background: var(--orange-l); } .a-tile.t2 .a-ico { color: var(--orange-t); }
.a-tile.t3 { background: var(--green-l); } .a-tile.t3 .a-ico { color: var(--green); }
@media (max-width: 760px) { .tile-grid { grid-template-columns: 1fr; } .a-tile { min-height: 470px; } }

/* ---------- home: black statement band ---------- */
.a-dark { background: #000; color: #f5f5f7; padding: clamp(80px, 12vw, 150px) 0; margin-top: 12px; }
.a-dark .a-eyebrow { color: #ffc879; }
.a-grad { font-size: clamp(2.6rem, 7.5vw, 5.6rem); max-width: 12em; margin: 0 auto .35em; background: linear-gradient(90deg, var(--sky), var(--leaf) 50%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a-dark .a-sub { color: #a1a1a6; }
.a-values, .a-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 70px; text-align: start; }
.a-values h3 { color: #f5f5f7; margin-top: 16px; }
.a-values p { color: #a1a1a6; margin: 0; }
.a-vi { color: var(--orange); } .a-vi .ico { width: 34px; height: 34px; stroke-width: 1.4; }
.a-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.a-stats strong { display: block; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -.03em; color: #fff; }
.a-stats span { color: #a1a1a6; }
@media (max-width: 760px) { .a-values { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- home: sections, closing ---------- */
.a-sec { padding: clamp(64px, 9vw, 110px) 0; }
.a-sec.soft, .block.soft { background: var(--soft); }
.a-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.a-head h2 { margin: 0; }
.a-end { padding: clamp(70px, 10vw, 130px) 0; background: var(--soft); }
.a-end img { margin: 0 auto 26px; width: 120px; height: auto; }
.a-end h2 { max-width: 16em; margin-inline: auto; }

/* ---------- fundraiser ---------- */
.campaign { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: var(--soft); border-radius: var(--r); padding: clamp(28px, 4vw, 48px); }
.campaign h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.campaign p { color: var(--muted); margin: 0; }
.cp-meter { display: grid; gap: 12px; }
.cp-nums { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cp-nums strong { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.cp-nums span { color: var(--muted); }
.cp-nums em { margin-inline-start: auto; font-style: normal; font-weight: 600; color: var(--blue-link); font-size: 1.2rem; }
.cp-bar { height: 10px; border-radius: 10px; background: var(--track); overflow: hidden; }
.cp-bar span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--leaf), var(--orange)); }
.js .campaign.rv .cp-bar span { width: 0; transition: width 1.6s cubic-bezier(.2, .8, .2, 1) .3s; }
.js .campaign.rv.in .cp-bar span { width: var(--p); }
.cp-foot { font-size: .88rem; }
.cp-meter .btn { justify-self: start; }
@media (max-width: 800px) { .campaign { grid-template-columns: 1fr; } }

/* ---------- inner pages: heading ---------- */
.phead-wrap { padding: clamp(56px, 8vw, 100px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.phead .rings { display: none; }
.phead h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: .25em; }
.lead { max-width: 40em; margin: 0 auto; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted); line-height: 1.45; }
.lead p:last-child { margin: 0; }

/* ---------- generic blocks, grids, cards ---------- */
.block { padding: clamp(36px, 5vw, 64px) 0; }
.block.tight { padding: 12px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--soft); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.card:hover { transform: scale(1.015); }
.card.pad { padding: 30px; }
.card > .media, .news-link > .media { aspect-ratio: 16 / 10; }
.card-body { padding: 22px 24px 8px; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-body h3 { margin-bottom: .35em; }
.news-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none !important; }
.news time, .article time { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.news .btn-line { display: inline-flex; gap: .3em; align-items: center; margin: 4px 0 18px; }
.card .btn-pill { align-self: flex-start; margin: 4px 0 18px; }
.media { position: relative; overflow: hidden; background: var(--soft); }
.media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.card:hover .media > img, .news-link:hover .media img { transform: scale(1.04); }
.ph { display: grid; place-items: center; }
.ph-blue { background: var(--blue-l); color: var(--blue); } .ph-orange { background: var(--orange-l); color: var(--orange-t); } .ph-green { background: var(--green-l); color: var(--green); }
.ph-ico .ico { width: 64px; height: 64px; stroke-width: 1.2; }
.ph-logo { width: 46% !important; height: auto !important; max-width: 200px; }
.media.tall { min-height: 360px; border-radius: var(--r); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; margin-bottom: 8px; }
.tag-current { color: var(--green); } .tag-upcoming { color: var(--orange-t); } .tag-done { color: var(--muted); }
.needs { font-size: .9rem; color: var(--ink) !important; background: var(--surface); padding: .75em 1em; border-radius: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.split > div:first-child:not(.media) { background: var(--soft); border-radius: var(--r); padding: 36px; }
.split.top { align-items: start; }
.split.top > div:first-child { background: transparent; padding: 0; }
.split.top > .card:first-child { background: var(--soft); padding: 30px; }
.value { background: var(--soft); border-radius: var(--r); padding: 28px; }
.value h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; margin-bottom: 16px; background: var(--blue); }
.value.v1 h3::before { background: var(--orange); } .value.v2 h3::before { background: var(--green); }
.value p { color: var(--muted); margin: 0; }
.block h2.center { margin-bottom: 28px; }

/* activity rows (activities page) */
.causes { display: grid; gap: 12px; }
.cause { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--soft); border-radius: var(--r); overflow: hidden; }
.cause:nth-child(even) .cause-media { order: -1; }
.cause-card { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cause-card h2, .cause-card h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cause-card p { color: var(--muted); }
.cause-card .btn-pill { margin-top: 6px; }
.cause-media { min-height: 320px; border-radius: 0; }
.icon-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--blue); margin-bottom: 18px; }
.icon-dot .ico { width: 22px; height: 22px; }
@media (max-width: 800px) { .cause, .split { grid-template-columns: 1fr; } .cause-media { order: -1 !important; min-height: 220px; } }

/* call-to-action bands (inner pages) */
.cta { padding: 12px 0 40px; }
.cta-in { background: #000; color: #f5f5f7; border-radius: var(--r); padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta p { margin: 0; color: #a1a1a6; max-width: 40em; }
.cta .btn { background: var(--surface); color: var(--ink); box-shadow: none; }
.cta .btn:hover { background: var(--soft); color: var(--ink); }

/* partners */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.partner { display: grid; place-items: center; gap: 6px; text-align: center; min-height: 120px; padding: 18px; background: var(--soft); border-radius: var(--r); color: var(--ink); text-decoration: none !important; }
.partner img { max-height: 60px; width: auto; object-fit: contain; }
.partner small { color: var(--muted); }
.pname { font-weight: 600; }
p.muted.center { background: var(--soft); border-radius: var(--r); padding: 26px; }

/* donate */
.donate .card h2 { font-size: 1.5rem; }
.donate .card p { color: var(--muted); font-size: .97rem; }
.donate .btn { align-self: flex-start; margin-top: auto; }
.badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--orange-t); margin-bottom: 16px; }
.badge .ico { width: 22px; height: 22px; }
.b-blue { color: var(--blue); } .b-green { color: var(--green); }
.bank { margin: 0; display: grid; gap: 8px; }
.bank > div { background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.bank dt { font-size: .78rem; color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; align-items: center; word-break: break-all; }
.copy { border: 0; background: var(--soft); border-radius: 980px; font: 500 .78rem var(--font); padding: .4em .9em; cursor: pointer; color: var(--blue-link); }
.pour { display: flex; align-items: center; gap: 14px; margin: 0; background: var(--soft); border-radius: var(--r); padding: 18px 22px; }
.pour .ico { width: 26px; height: 26px; color: var(--orange-t); }
.pour strong { font-weight: 600; }

/* contact */
.contact-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 14px; align-items: center; background: var(--soft); border-radius: 16px; padding: 16px 18px; }
.contact-list .ico { width: 40px; height: 40px; padding: 10px; background: var(--surface); color: var(--blue); border-radius: 50%; }
.contact-list small { display: block; color: var(--muted); }
.contact-list a { font-weight: 600; }
.map iframe { width: 100%; height: 300px; border: 0; border-radius: var(--r); }
.waform label { display: block; font-weight: 500; margin-bottom: 14px; font-size: .95rem; }
.waform input, .waform textarea { display: block; width: 100%; margin-top: 6px; font: inherit; padding: .75em 1em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.waform input:focus, .waform textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }

/* news article */
.article { padding: clamp(40px, 7vw, 80px) 0 20px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; margin-bottom: 26px; }
.back .ico { transform: scaleX(-1); } [dir="rtl"] .back .ico { transform: none; }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.art-pic { margin: 28px 0; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.art-pic img { width: 100%; max-height: 600px; object-fit: contain; }
.art-body { font-size: 1.15rem; line-height: 1.6; }
.art-end { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 0; font-weight: 600; font-size: 1.2rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; letter-spacing: -.015em; }
.faq-item summary::-webkit-details-marker { display: none; }
.pm { width: 22px; height: 22px; position: relative; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.8px; background: var(--ink); translate: -50% -50%; border-radius: 2px; }
.pm::after { rotate: 90deg; transition: rotate .3s; }
.faq-item[open] .pm::after { rotate: 0deg; }
.faq-a { padding: 0 0 22px; color: var(--muted); font-size: 1.05rem; }
.faq-more { text-align: center; padding: 48px 0 0; }

/* gallery */
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(20px, calc((100vw - 1080px) / 2)) 24px; scrollbar-width: none; cursor: grab; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.drag { cursor: grabbing; scroll-snap-type: none; }
.g-item { flex: 0 0 clamp(220px, 24vw, 290px); aspect-ratio: 3 / 4.3; margin: 0; border-radius: var(--r); overflow: hidden; position: relative; scroll-snap-align: start; background: #e8e8ed; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); user-select: none; -webkit-user-drag: none; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption { position: absolute; inset: auto 12px 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); font-size: .82rem; font-weight: 500; opacity: 0; transform: translateY(8px); transition: .35s; }
.g-item:hover figcaption, .g-item:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .g-item figcaption { opacity: 1; transform: none; } }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn .3s ease; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lightbox figure { margin: 0; max-width: min(92vw, 720px); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 18px; }
.lightbox figcaption { color: #fff; margin-top: 14px; }
.lightbox button { position: fixed; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lb-x { top: 18px; right: 18px; } .lb-p { left: 18px; top: 50%; translate: 0 -50%; } .lb-n { right: 18px; top: 50%; translate: 0 -50%; }

/* chat assistant */
.chat { position: fixed; z-index: 40; bottom: 20px; inset-inline-end: 20px; }
.chat-fab { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--ink); color: #fff; font: 500 .9rem var(--font); padding: 12px 18px; border-radius: 980px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); }
.chat-fab .ico { width: 19px; height: 19px; }
.chat.open .chat-fab { display: none; }
.chat-panel { width: min(370px, calc(100vw - 24px)); height: min(520px, calc(100vh - 110px)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(20px); border: 1px solid rgba(0, 0, 0, .08); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .35); display: flex; flex-direction: column; overflow: hidden; animation: lbIn .25s ease; }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.chat-panel header strong { flex: 1; font-weight: 600; }
.chat-x { border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.45; white-space: pre-line; animation: lbIn .2s ease; }
.msg.bot { background: var(--bubble); align-self: flex-start; }
.msg.me { background: var(--blue); color: #fff; align-self: flex-end; }
.chips-q { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-q button, .chips-q a { border: 1px solid var(--line); background: var(--surface); color: var(--blue-link); font: 500 .82rem var(--font); padding: 7px 12px; border-radius: 980px; cursor: pointer; text-decoration: none; text-align: start; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(0, 0, 0, .06); }
.chat-form input { flex: 1; font: inherit; border: 1px solid var(--line); border-radius: 980px; padding: 9px 14px; min-width: 0; background: var(--surface); }
.chat-form button { border: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
@media (max-width: 560px) { .chat-fab span { display: none; } .chat-fab { padding: 13px; } }

/* footer */
.foot { background: var(--soft); color: var(--muted); font-size: .8rem; margin-top: 0; }
.foot a { color: #424245; text-decoration: none; } .foot a:hover { text-decoration: underline; color: var(--ink); }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-bottom: 1px solid var(--line); }
.foot-say { margin: 0; font-size: .95rem; color: var(--ink); font-weight: 500; }
.foot-top .btn { background: var(--blue); color: #fff; box-shadow: none; padding: .45em 1em; font-size: .82rem; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; padding: 26px 0; }
.foot-brand img { width: 84px; height: auto; }
.foot-social { display: flex; gap: 8px; margin-top: 14px; }
.foot-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); }
.foot-social a:hover { background: var(--blue); color: #fff; }
.foot-social .ico { width: 17px; height: 17px; }
.foot-addr { margin: 12px 0 0; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(110px, auto)); gap: 8px 36px; align-content: start; }
.foot-end { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 16px 0 24px; border-top: 1px solid var(--line); }
.foot-langs { display: flex; gap: 16px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } .foot-nav { grid-template-columns: repeat(2, 1fr); } }

/* ---------- motion ---------- */
@view-transition { navigation: auto; }
.top { view-transition-name: site-header; }
::view-transition-old(root) { animation: vtOut .2s ease both; }
::view-transition-new(root) { animation: vtIn .35s ease both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; white-space: nowrap; }
.words .wi { display: inline-block; white-space: nowrap; transform: translateY(105%); animation: word .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.1s + var(--i) * 60ms); }
.words { text-wrap: wrap; }
@keyframes word { to { transform: none; } }
img.fade { opacity: 0; transition: opacity .6s ease; } img.fade.loaded { opacity: 1; }
@supports (animation-timeline: view()) {
  .a-tile-visual img, .cause-media img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes drift { from { transform: translateY(-4%) scale(1.08); } to { transform: translateY(4%) scale(1.08); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; } .words .wi { transform: none; }
  html { scroll-behavior: auto; }
}

/* unused older blocks stay hidden */
.marquee, .rings, .glow { display: none; }

/* ---------- colour accents ---------- */
.btn-orange { background: var(--orange); color: #1d1d1f; }
.btn-orange:hover { background: #ffad42; color: #1d1d1f; }
.nav-end .btn-orange { background: var(--orange); color: #1d1d1f; }
.nav-end .btn-orange:hover { background: #ffad42; }
.foot-top .btn { background: var(--orange); color: #1d1d1f; }
.a-values > div:nth-child(1) .a-vi { color: var(--sky); } .a-values > div:nth-child(2) .a-vi { color: var(--orange); } .a-values > div:nth-child(3) .a-vi { color: var(--leaf); }
.a-stats > div:nth-child(4n+1) strong { color: var(--sky); } .a-stats > div:nth-child(4n+2) strong { color: var(--orange); } .a-stats > div:nth-child(4n+3) strong { color: var(--leaf); }
.campaign { background: linear-gradient(135deg, var(--orange-l), var(--blue-l)); }
.news time { color: var(--orange-t); font-weight: 600; }
.a-head h2::after, .sec-head h2::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; margin-top: 12px; background: linear-gradient(90deg, var(--blue), var(--leaf), var(--orange)); }
.partner { border-top: 3px solid var(--blue); }
.partner:nth-child(3n+2) { border-top-color: var(--orange); } .partner:nth-child(3n+3) { border-top-color: var(--green); }
.faq-item[open] summary { color: var(--blue-link); }

/* ---------- project & news cards: button always at the bottom ---------- */
.card .card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.card .card-body > .btn-pill, .card .card-body > .btn-line { margin-top: auto; }
.card .card-body > p:last-of-type { margin-bottom: 18px; }
.proj .card-body { padding-bottom: 24px; }
.proj .btn-pill { margin-bottom: 0; }

/* ---------- demo banner ---------- */
.demo-bar { background: repeating-linear-gradient(135deg, #fff3d6 0 12px, #ffe8b3 12px 24px); color: #5c3b00; text-align: center; font-size: .8rem; font-weight: 600; padding: 6px 12px; }

/* ---------- light / dark switch ---------- */
.theme-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; display: grid; place-items: center; position: relative; overflow: hidden; }
.theme-btn .ico { width: 17px; height: 17px; }
.theme-btn span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.theme-btn .t-moon { transform: translateY(120%) rotate(-40deg); opacity: 0; }
[data-theme="dark"] .theme-btn .t-sun { transform: translateY(-120%) rotate(40deg); opacity: 0; }
[data-theme="dark"] .theme-btn .t-moon { transform: none; opacity: 1; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before { transition: background-color .4s ease, color .4s ease, border-color .4s ease !important; }

/* ---------- dark mode ---------- */
[data-theme="dark"] {
  --bg: #000; --soft: #161618; --surface: #232326; --ink: #f5f5f7; --muted: #a1a1a6; --line: #38383a;
  --blue-link: #5cbde8; --orange-t: #ffb35c; --green: #34c28f;
  --blue-l: rgba(19, 126, 173, .2); --orange-l: rgba(242, 156, 43, .16); --green-l: rgba(43, 179, 131, .16);
  --nav-bg: rgba(22, 22, 23, .78); --bubble: #2c2c2e; --track: #3a3a3c;
  color-scheme: dark;
}
[data-theme="dark"] .top { border-bottom-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .pill-nav a { color: rgba(245, 245, 247, .8); }
[data-theme="dark"] .pill-nav a:hover, [data-theme="dark"] .pill-nav a[aria-current] { color: #fff; }
[data-theme="dark"] .burger span { background: var(--ink); }
@media (max-width: 1000px) { [data-theme="dark"] .nav { background: rgba(0, 0, 0, .96); } }
[data-theme="dark"] .brand img, [data-theme="dark"] .foot-brand img, [data-theme="dark"] .a-end img { background: #fff; border-radius: 12px; padding: 4px 6px; }
[data-theme="dark"] .a-tile.t1 { background: linear-gradient(160deg, #0b5a7e, #062f42); }
[data-theme="dark"] .a-tile.t1 .a-ico { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .a-dark { background: #0a0a0b; box-shadow: inset 0 1px 0 #1d1d1f, inset 0 -1px 0 #1d1d1f; }
[data-theme="dark"] .cta-in { background: #161618; box-shadow: inset 0 0 0 1px #2c2c2e; }
[data-theme="dark"] .g-item figcaption { background: rgba(28, 28, 30, .85); color: var(--ink); }
[data-theme="dark"] .chat-panel { background: rgba(28, 28, 30, .92); border-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .chat-fab { background: #f5f5f7; color: #1d1d1f; }
[data-theme="dark"] .chat-panel header, [data-theme="dark"] .chat-form { border-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .chips-q button, [data-theme="dark"] .chips-q a, [data-theme="dark"] .chat-form input, [data-theme="dark"] .waform input, [data-theme="dark"] .waform textarea { border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .demo-bar { background: repeating-linear-gradient(135deg, #3a2a08 0 12px, #4a360c 12px 24px); color: #ffd98a; }
[data-theme="dark"] .a-shot { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
[data-theme="dark"] .ph-ico .ico, [data-theme="dark"] .a-ico { filter: none; }
[data-theme="dark"] .lightbox::backdrop { background: rgba(0, 0, 0, .94); }
