/* Cochin Charitable Society — site styles */
:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --alt: #f3ece0;
  --ink: #1d2a2c;
  --muted: #5a686b;
  --line: #e6dccb;
  --primary: #0f5e5a;
  --primary-dark: #0a4542;
  --accent: #e8a33d;
  --accent-dark: #c9831f;
  --accent-soft: #fbecd2;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 42, 44, .06), 0 8px 24px rgba(29, 42, 44, .08);
  --shadow-lg: 0 18px 50px rgba(29, 42, 44, .16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --c-elderly: #f6dfe0; --t-elderly: #9b3b45;
  --c-education: #dbe8f7; --t-education: #2b5c94;
  --c-health: #fde3d3; --t-health: #b0502a;
  --c-food: #fbecd2; --t-food: #94600f;
  --c-livelihood: #e6e1f5; --t-livelihood: #5a4799;
  --c-abled: #d9f0ec; --t-abled: #1e6c62;
  --c-environment: #e2efd5; --t-environment: #47702a;
  --c-heroes: #f6e9c8; --t-heroes: #8a6411;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { margin: 0 0 .6em; font-size: .95rem; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .8em; }
.eyebrow.light { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.note { color: var(--muted); font-size: .95rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font: 700 .98rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6em 1.15em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #2a1b04; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 8px 20px rgba(232, 163, 61, .35); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-wa { background: #1fa855; color: #fff; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 240, .9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(29, 42, 44, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--line); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 1.12rem; }
.brand small { color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-light { color: #fff; }
.brand-light small { color: rgba(255, 255, 255, .7); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5em .8em; border-radius: 999px; transition: background .2s; }
.site-nav a:not(.btn):hover { background: var(--alt); }
.site-nav a[aria-current="page"] { color: var(--primary); background: #e3efed; }
.site-nav .btn { margin-left: 8px; }
.header-tools { display: flex; align-items: center; gap: 6px; order: 3; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: .45em .9em; border: 1.5px solid var(--line); border-radius: 999px; color: var(--primary); background: var(--surface); text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; transition: border-color .2s, background .2s; }
.lang-switch:hover { border-color: var(--primary); background: #e3efed; }
.lang-switch[lang="ml"] { font-family: "Noto Sans Malayalam", var(--sans); }
.lang-switch .icon { width: 18px; height: 18px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nf-ml { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .25s; }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: .8em 1em; font-size: 1.05rem; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--primary-dark); }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.hero-slides img.active { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 30, .25) 0%, rgba(10, 30, 30, .45) 45%, rgba(8, 34, 33, .92) 100%); }
.hero-content { position: relative; z-index: 1; padding: 120px 0 56px; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgba(255, 255, 255, .88); }
.hero-dots { display: flex; gap: 8px; margin-top: 36px; }
.hero-dots button { width: 28px; height: 5px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .3s, width .3s; }
.hero-dots button[aria-selected="true"] { background: var(--accent); width: 44px; }

/* stats */
.stats { background: var(--primary); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 16px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font: 700 clamp(2rem, 4vw, 2.9rem)/1.1 var(--serif); color: var(--accent); }
.stat span { font-size: .92rem; color: rgba(255, 255, 255, .82); }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); } }

/* sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding-top: 40px; }
.section.alt { background: var(--alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); background: var(--alt); overflow: hidden; }
.page-head.has-img { color: #fff; background: var(--primary-dark); }
.page-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-head .wrap { position: relative; }
.page-head.has-img .lead { color: rgba(255, 255, 255, .88); }
.page-head h1 { max-width: 18ch; }

/* causes */
.causes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cause, .way { display: flex; flex-direction: column; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.cause:hover, .way:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cause p, .way p { color: var(--muted); font-size: .95rem; flex: 1; }
.cause-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; }
.cause-icon .icon { width: 26px; height: 26px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--primary); }
.cause:hover .more .icon { transform: translateX(4px); }
.more .icon { transition: transform .2s; }
.chip, .cause-icon { background: var(--accent-soft); color: var(--accent-dark); }
.chip { display: inline-block; padding: .3em .8em; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.chip-elderly { background: var(--c-elderly); color: var(--t-elderly); }
.chip-education { background: var(--c-education); color: var(--t-education); }
.chip-health { background: var(--c-health); color: var(--t-health); }
.chip-food { background: var(--c-food); color: var(--t-food); }
.chip-livelihood { background: var(--c-livelihood); color: var(--t-livelihood); }
.chip-abled { background: var(--c-abled); color: var(--t-abled); }
.chip-environment { background: var(--c-environment); color: var(--t-environment); }
.chip-heroes { background: var(--c-heroes); color: var(--t-heroes); }

/* quote */
.quote-band { background: var(--accent-soft); padding: 72px 0; text-align: center; }
.quote-icon { width: 44px; height: 44px; color: var(--accent-dark); margin: 0 auto 10px; }
.quote-band blockquote { margin: 0 auto; max-width: 22ch; font: 500 clamp(1.7rem, 3.6vw, 2.6rem)/1.25 var(--serif); }
.quote-band cite { display: block; margin-top: 16px; color: var(--muted); font-style: normal; font-size: .95rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.06); }
.badge { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .78rem; font-weight: 700; padding: .3em .65em; border-radius: 999px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 12px 0 8px; }
.card-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.meta { font-size: .85rem; color: var(--muted); font-weight: 600; }
.meta.light { color: rgba(255, 255, 255, .85); }

/* spotlight */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.spotlight-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 820px) { .spotlight { grid-template-columns: 1fr; } }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-inner p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-inner h2 { margin-bottom: .3em; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { font: 600 .88rem var(--sans); padding: .55em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: .2s; }
.filter-chip:hover { border-color: var(--primary); }
.filter-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; min-width: min(280px, 100%); color: var(--muted); }
.search:focus-within { border-color: var(--primary); }
.search input { border: 0; outline: 0; background: none; padding: .7em 0; font: inherit; font-size: .95rem; flex: 1; min-width: 0; color: var(--ink); }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
[data-filterable] > .is-hidden { display: none !important; }

/* masonry gallery */
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry a { display: block; margin-bottom: 14px; border-radius: 12px; overflow: hidden; break-inside: avoid; position: relative; background: var(--alt); }
.masonry img { width: 100%; transition: transform .5s, filter .3s; }
.masonry a:hover img { transform: scale(1.04); filter: brightness(1.05); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 15, .94); display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: .25s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { display: grid; place-items: center; padding: 56px 64px 8px; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px 20px; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.lb-bar a { color: var(--accent); font-weight: 700; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-stage { padding: 56px 8px 8px; } .lb-prev, .lb-next { top: auto; bottom: 64px; transform: none; } }

/* about */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; }
.prose p { font-size: 1.06rem; }
.pull { font: 500 1.4rem/1.4 var(--serif); color: var(--primary); border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; margin: 1.4em 0; }
.who { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 10px 0 10px 32px; border-bottom: 1px dashed var(--line); position: relative; }
.ticks li:last-child { border: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9831f' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.person { background: var(--surface); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.person h3 { font-size: 1.1rem; margin-bottom: 4px; }
.person p { color: var(--accent-dark); font-weight: 700; margin: 0; font-size: .9rem; }
.avatar { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #2a8a83); color: #fff; font: 700 1.5rem var(--serif); }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 130px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 32px; align-items: center; padding: 10px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 124px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline time { font-size: .85rem; font-weight: 700; color: var(--muted); text-align: right; padding-right: 8px; }
.timeline a { display: flex; align-items: center; gap: 16px; padding: 10px; background: var(--surface); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
.timeline a:hover { transform: translateX(6px); }
.timeline img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex: none; }
.timeline a > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 640px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .timeline li::before { left: 1px; top: 22px; }
  .timeline time { text-align: left; }
  .timeline img { width: 60px; height: 60px; }
}

/* story */
.story-head { position: relative; color: #fff; background: var(--primary-dark); padding: clamp(80px, 14vw, 180px) 0 48px; overflow: hidden; }
.story-head .page-head-bg { opacity: .45; }
.story-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 34, 33, .85)); }
.story-head .wrap { position: relative; z-index: 1; }
.story-head h1 { margin: 14px 0 10px; max-width: 20ch; }
.back { display: inline-block; color: #fff; text-decoration: none; font-weight: 600; margin-bottom: 18px; opacity: .85; }
.back:hover { opacity: 1; }
.story-layout { display: grid; grid-template-columns: 1fr 280px; gap: clamp(28px, 5vw, 72px); padding: 56px 0 24px; }
.story-aside { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.share { background: var(--surface); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.share-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--primary); cursor: pointer; margin-right: 6px; transition: .2s; }
.share-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 860px) { .story-layout { grid-template-columns: 1fr; } .story-aside { position: static; } }
.story-gallery { padding: 16px 0 40px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 64px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: .2s; }
.pager a:hover { border-color: var(--primary); background: var(--surface); }
.pager small { color: var(--muted); font-weight: 600; }
.pager .next { text-align: right; }

/* get involved + forms */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .ways { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.panel.soft { box-shadow: none; border: 1px solid var(--line); margin-top: 8px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea, .other-amount { font: 400 1rem var(--sans); padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); transition: border-color .2s, background .2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .other-amount:focus { outline: 0; border-color: var(--primary); background: #fff; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amount input, .checks input { position: absolute; opacity: 0; pointer-events: none; }
.amount span { display: block; padding: .65em 1.1em; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; cursor: pointer; transition: .2s; }
.amount input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.amount input:focus-visible + span, .checks input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.other-amount { margin-top: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label span { display: inline-block; padding: .5em .9em; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer; transition: .2s; }
.checks input:checked + span { background: #e3efed; border-color: var(--primary); color: var(--primary); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--primary); }
.form-status.err { color: #c0392b; }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-dark); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); }
.bank { background: var(--surface); border-radius: 14px; padding: 20px; border: 1px dashed var(--accent); }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; }
.copy { font: 600 .78rem var(--sans); border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 2px 8px; cursor: pointer; margin-left: 6px; }

/* contact */
.contact-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.contact-list.big li { font-size: 1.05rem; padding: 10px 0; }
.contact-list.big .icon { color: var(--primary); width: 22px; height: 22px; }

/* footer */
.site-footer { background: #10302f; color: rgba(255, 255, 255, .78); padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer h4 { color: #fff; }
.site-footer li { padding: 4px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-tag { margin-top: 16px; font-family: var(--serif); font-size: 1.05rem; max-width: 30ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0; margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* Malayalam */
:lang(ml) { --serif: "Noto Serif Malayalam", "Noto Sans Malayalam", Georgia, serif; --sans: "Noto Sans Malayalam", "Manrope", system-ui, sans-serif; }
html[lang="ml"] body { font-family: var(--sans); line-height: 1.85; font-size: 16.5px; }
:lang(ml) h1, :lang(ml) h2, :lang(ml) h3 { font-family: var(--serif); line-height: 1.4; letter-spacing: 0; }
html[lang="ml"] h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
html[lang="ml"] h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
html[lang="ml"] h3 { font-size: 1.12rem; }
html[lang="ml"] .eyebrow { text-transform: none; letter-spacing: .02em; font-size: .85rem; }
html[lang="ml"] .hero h1 { max-width: 20ch; }
html[lang="ml"] .quote-band blockquote { max-width: 26ch; line-height: 1.5; }
html[lang="ml"] .site-nav a:not(.btn) { font-size: .9rem; padding: .5em .65em; }
html[lang="ml"] .brand strong { font-size: 1rem; }
html[lang="ml"] .pull { line-height: 1.6; }
:lang(ml) h1, :lang(ml) h2, :lang(ml) h3, :lang(ml) p, :lang(ml) li { overflow-wrap: break-word; }
@media (max-width: 1100px) and (min-width: 921px) { html[lang="ml"] .site-nav a:not(.btn) { padding: .5em .45em; font-size: .85rem; } }
@media (max-width: 480px) { .lang-switch span { display: none; } .lang-switch { padding: .5em; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; opacity: 0; transition: .3s; z-index: 300; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* intro (first visit per session) + page entrance */
.intro-screen { display: none; }
.intro .intro-screen { position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 42%, #14706b 0%, var(--primary-dark) 60%, #062f2d 100%);
  animation: introOut .85s cubic-bezier(.76, 0, .24, 1) 1.9s forwards; }
.intro-mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.intro-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 352; stroke-dashoffset: 352; animation: introRing 1.1s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
.intro-mark img { border-radius: 50%; background: #fff; opacity: 0; transform: scale(.6); animation: introPop .7s cubic-bezier(.34, 1.56, .64, 1) .35s forwards; }
.intro-mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: introPulse 1.2s ease-out 1.2s; }
.intro-name { margin: 0; font: 700 clamp(1.5rem, 5vw, 2.4rem)/1.15 var(--serif); letter-spacing: -.01em; }
.intro-name > span { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.intro-name > span > span { display: inline-block; transform: translateY(110%); animation: introWord .7s cubic-bezier(.22, 1, .36, 1) calc(.6s + var(--i) * .12s) forwards; }
.intro-tag { margin: 0; color: var(--accent); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; opacity: 0; animation: introFade .6s ease 1.1s forwards; }
@keyframes introRing { to { stroke-dashoffset: 0; } }
@keyframes introPop { to { opacity: 1; transform: none; } }
@keyframes introPulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes introWord { to { transform: none; } }
@keyframes introFade { from { transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

:root { --enter: .1s; }
.intro { --enter: 2.15s; }
.hero-content > *, .page-head .wrap > *, .story-head .wrap > * { animation: enterUp .9s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--enter); }
.hero-content > :nth-child(2), .page-head .wrap > :nth-child(2), .story-head .wrap > :nth-child(2) { animation-delay: calc(var(--enter) + .1s); }
.hero-content > :nth-child(3), .page-head .wrap > :nth-child(3), .story-head .wrap > :nth-child(3) { animation-delay: calc(var(--enter) + .2s); }
.hero-content > :nth-child(n+4), .page-head .wrap > :nth-child(n+4), .story-head .wrap > :nth-child(n+4) { animation-delay: calc(var(--enter) + .3s); }
.intro .site-header { animation: enterDown .7s cubic-bezier(.22, 1, .36, 1) 2.05s both; }
.intro .hero-slides img.active { transform: scale(1.12); animation: heroZoom 2.6s cubic-bezier(.22, 1, .36, 1) 1.9s forwards; }
@keyframes enterUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes enterDown { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { to { transform: scale(1); } }
