/* Krishna Mahila Utkarsh Sanstha — site styles
   Palette taken from the logo: indigo ring, blue-to-teal figure, gold and saffron leaves. */

:root {
  --indigo: #2B2E78;
  --blue: #2A5D9E;
  --teal: #3AA6A8;
  --teal-light: #6CC7C5;
  --gold: #EDBA45;
  --gold-light: #F4D27E;
  --saffron: #DD8A2E;
  --ink: #151842;
  --cream: #F3F5FB;
  --paper: #FFFFFF;
  --muted: #4B5070;
  --muted-2: #6A6F8E;
  --mist: #F0F5F7;
  --line: rgba(21, 24, 66, 0.1);
  --line-2: rgba(21, 24, 66, 0.14);
  --on-dark: rgba(243, 245, 251, 0.82);
  --on-dark-line: rgba(243, 245, 251, 0.3);

  --grad-figure: linear-gradient(100deg, var(--blue) 10%, var(--teal) 90%);
  --grad-leaf: linear-gradient(100deg, var(--gold) 10%, var(--saffron) 90%);
  --grad-brand: linear-gradient(90deg, var(--indigo), var(--blue), var(--teal), var(--gold));

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
a:hover { color: var(--indigo); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

main { overflow-x: clip; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-indigo { background: var(--indigo); color: var(--cream); }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 12px; color: var(--cream); }

/* Watercolour washes, echoing the logo's painted texture */
.wash { position: relative; isolation: isolate; }
.wash::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 88% 12%, rgba(58, 166, 168, 0.16), transparent 70%),
    radial-gradient(35% 45% at 8% 92%, rgba(237, 186, 69, 0.16), transparent 70%);
}
.wash-dark::before {
  background:
    radial-gradient(45% 60% at 90% 0%, rgba(58, 166, 168, 0.22), transparent 70%),
    radial-gradient(40% 55% at 0% 100%, rgba(237, 186, 69, 0.14), transparent 70%),
    radial-gradient(50% 60% at 50% 120%, rgba(42, 93, 158, 0.35), transparent 70%);
}

/* ---------- Brand mark ---------- */
.mark { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(43, 46, 120, 0.12), 0 4px 14px rgba(21, 24, 66, 0.08); }
.mark img { display: block; width: 100%; height: 100%; }
.mark-sm { width: 48px; height: 48px; padding: 2px; }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--blue); }
.eyebrow.on-dark { color: var(--gold-light); }
.label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.label.on-dark { color: var(--on-dark); }
.it { font-style: italic; }
/* Emphasis words use the logo gradients */
.c-accent, .c-primary, .c-gold { -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.c-accent { background-image: var(--grad-figure); }
.c-primary { background-image: linear-gradient(100deg, var(--indigo), var(--blue)); }
.c-gold { background-image: var(--grad-leaf); }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.015em; margin: 22px 0 0; text-wrap: pretty; color: var(--indigo); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; margin: 18px 0 0; text-wrap: pretty; color: var(--indigo); }
.lede { font-size: 17.5px; line-height: 1.65; color: var(--muted); margin: 22px 0 0; text-wrap: pretty; }
.body-lg { font-size: 18px; line-height: 1.7; margin: 0; text-wrap: pretty; }
.body { font-size: 16.5px; line-height: 1.75; color: var(--muted); margin: 24px 0 0; text-wrap: pretty; }
.sub { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 26px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2; text-align: center;
}
.btn-sm { padding: 13px 22px; font-size: 14.5px; }
.btn-primary { background: var(--indigo); color: var(--cream); box-shadow: 0 10px 26px rgba(43, 46, 120, 0.26); }
.btn-primary:hover { background: var(--blue); color: #FFFFFF; }
.btn-primary.flat { box-shadow: none; }
.btn-outline { border-color: rgba(21, 24, 66, 0.25); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-gold { background: var(--grad-leaf); color: var(--ink); font-weight: 700; box-shadow: 0 10px 26px rgba(221, 138, 46, 0.28); }
.btn-gold:hover { background: var(--cream); color: var(--indigo); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(243, 245, 251, 0.45); transition: all .3s var(--ease); }
.btn-ghost-light:hover { border-color: var(--cream); }
.btn-ghost-light.is-copied { background: var(--cream); color: var(--indigo); border-color: var(--cream); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: rgba(21, 24, 66, 0.07); z-index: 120; }
.progress > div { height: 100%; width: 0%; background: var(--grad-brand); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 110;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(21, 24, 66, 0.08);
}
.site-header.is-dark { top: 0; background: rgba(21, 24, 66, 0.78); border-bottom-color: rgba(243, 245, 251, 0.14); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--indigo); }
.brand:hover { color: var(--indigo); }
.is-dark .brand, .is-dark .brand:hover { color: var(--cream); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: 0.005em; }
.brand-text span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; color: var(--muted-2); text-transform: uppercase; margin-top: 4px; }
.is-dark .brand-text span { color: rgba(243, 245, 251, 0.75); }

.nav { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--ink); }
.nav-links a:hover { background: rgba(42, 93, 158, 0.08); color: var(--blue); }
.nav-links a[aria-current="page"] { color: var(--indigo); background: rgba(43, 46, 120, 0.09); font-weight: 500; }
.is-dark .nav-links a { color: var(--cream); }
.is-dark .nav-links a:hover { background: rgba(243, 245, 251, 0.14); color: var(--cream); }
.nav-cta { margin-left: 8px; padding: 11px 20px; border-radius: 999px; background: var(--grad-leaf); color: var(--ink); font-weight: 700; box-shadow: 0 6px 18px rgba(221, 138, 46, 0.3); white-space: nowrap; }
.nav-cta:hover { background: var(--indigo); color: #FFFFFF; box-shadow: 0 10px 26px rgba(43, 46, 120, 0.3); }
.is-dark .nav-cta:hover { background: var(--cream); color: var(--indigo); }
.nav-toggle {
  display: none; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(21, 24, 66, 0.2); color: var(--ink); font-size: 13.5px;
}
.nav-toggle .bars { display: grid; gap: 3px; }
.nav-toggle .bars i { display: block; width: 14px; height: 1.5px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.nav-open .nav-toggle .bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.is-dark .nav-toggle { color: var(--cream); border-color: rgba(243, 245, 251, 0.3); }

@media (max-width: 960px) {
  :root { --gutter: 16px; }
  .brand-text strong { font-size: 17px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: 0; padding: 10px 14px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 18px;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid rgba(21, 24, 66, 0.08);
  }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
  .is-dark .nav-links { background: rgba(21, 24, 66, 0.98); border-bottom-color: rgba(243, 245, 251, 0.14); }
  .nav-open .nav-links { display: flex; }
}
@media (max-width: 560px) {
  .brand-text { display: none; }
  .header-row { gap: 12px; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .25s ease, box-shadow .25s ease; }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }

/* ---------- Leaf motif ---------- */
.leaf { display: inline-block; width: 9px; height: 13px; border-radius: 0 100% 0 100%; background: var(--grad-leaf); transform: rotate(35deg); flex: none; }

/* ---------- Cards ---------- */
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; }
.grid { display: grid; gap: 16px; }
.cols-auto-170 { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 14px; }
.cols-auto-190 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.cols-auto-200 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.cols-auto-215 { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); gap: 14px; }
.cols-auto-220 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.cols-auto-230 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 60px; align-items: start; }
.section-head { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-end; justify-content: space-between; }

.mini-stat { padding: 20px; border-radius: 16px; transition: border-color .25s ease, transform .25s ease; }
.mini-stat:hover { border-color: var(--teal); transform: translateY(-3px); }
.mini-stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; color: var(--blue); }
.mini-stat span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

.serve-card { position: relative; padding: 26px 22px 90px; overflow: hidden; min-height: 250px; }
.serve-card:hover { border-color: var(--blue); box-shadow: 0 18px 40px rgba(21, 24, 66, 0.12); }
.serve-card .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--blue); }
.serve-card h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; margin: 14px 0 0; color: var(--indigo); }
.serve-card p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.serve-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold)); opacity: 0.14; }
.serve-card .leaf { position: absolute; right: 22px; top: 26px; }

.photo { border-radius: 20px; overflow: hidden; }
.photo img { display: block; width: 100%; height: auto; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px var(--gutter) 70px; max-width: 1280px; margin: 0 auto; }
.hero.wash::before { left: calc(50% - 50vw); right: calc(50% - 50vw); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; align-items: center; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--indigo); border: 1px solid rgba(43, 46, 120, 0.25); padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7);
}
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.6vw, 86px); line-height: 0.98; letter-spacing: -0.015em; margin: 26px 0 0; text-wrap: pretty; color: var(--indigo); }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; color: var(--blue); margin: 18px 0 0; }
.hero .lede { max-width: 52ch; margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.hero-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; color: var(--blue); }
.hero-stats span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-top: 8px; }
.hero-photo { position: relative; }
/* Double ring from the logo, drawn around the photo */
.hero-photo::before, .hero-photo::after {
  content: ""; position: absolute; left: 50%; top: 46%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.hero-photo::before { width: 112%; border: 2px solid rgba(42, 93, 158, 0.28); }
.hero-photo::after { width: 106%; border: 1px solid rgba(58, 166, 168, 0.35); }
.hero-arch { position: relative; z-index: 1; border-radius: 280px 280px 24px 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(21, 24, 66, 0.22); }
.hero-arch img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 3.4; object-fit: cover; }
.hero-arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 93, 158, 0.06) 40%, rgba(21, 24, 66, 0.75)); }
.hero-caption { position: absolute; left: 24px; right: 24px; bottom: 24px; color: var(--cream); z-index: 1; }
.hero-caption .label { color: var(--cream); opacity: 0.85; }
.hero-caption div:last-child { font-family: var(--serif); font-size: 26px; margin-top: 6px; line-height: 1.15; }
.hero-badge { position: absolute; top: -16px; left: -18px; background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 18px; padding: 14px 18px; box-shadow: 0 14px 34px rgba(21, 24, 66, 0.12); z-index: 2; }
.hero-badge b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; color: var(--saffron); }
.hero-badge span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-top: 5px; }
@media (max-width: 960px) {
  .hero { padding-top: 110px; }
  .hero-badge { left: 12px; top: 12px; }
  .hero-photo::before, .hero-photo::after { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--indigo); color: var(--cream); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: kmus-marquee 38s linear infinite; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; }
.marquee-track > span { display: flex; gap: 40px; padding-right: 40px; align-items: center; }
@keyframes kmus-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Quote ---------- */
.quote { margin: 26px 0 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: pretty; color: var(--indigo); }
.quote-by { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-top: 20px; }

/* ---------- Brand intro (About) ---------- */
.brand-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.brand-intro .logo-full { justify-self: center; width: min(360px, 100%); }
.brand-intro .logo-full img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .brand-intro { grid-template-columns: minmax(0, 1fr); } .brand-intro .logo-full { width: min(260px, 80%); } }

/* ---------- Vision / mission ---------- */
.vm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 64px; }
.vm-vision { font-family: var(--serif); font-size: clamp(38px, 5vw, 64px); line-height: 1.04; margin-top: 22px; text-wrap: pretty; }
.vm-vision-sub { font-size: 16px; line-height: 1.7; color: rgba(243, 245, 251, 0.78); margin: 22px 0 0; max-width: 44ch; }
.vm-mission { border-left: 1px solid rgba(243, 245, 251, 0.2); padding-left: 36px; }
.vm-mission p { font-size: 19px; line-height: 1.7; margin: 22px 0 0; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip-dark { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--on-dark-line); border-radius: 999px; padding: 8px 14px; }
@media (max-width: 680px) { .vm-mission { padding-left: 22px; } .vm { gap: 48px; } }

/* ---------- Project links (home) ---------- */
.proj-link { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 18px; background: #FFFFFF; border: 1px solid rgba(21, 24, 66, 0.12); color: var(--ink); min-height: 150px; }
.proj-link:hover { border-color: var(--blue); box-shadow: 0 18px 40px rgba(21, 24, 66, 0.12); transform: translateY(-4px); color: var(--ink); }
.proj-link .n { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--blue); }
.proj-link .t { font-size: 17px; font-weight: 500; line-height: 1.25; }
.proj-link .s { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.proj-link .s b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; color: var(--indigo); }
.proj-link .s span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Impact ---------- */
.impact-stat { padding: 28px; }
.impact-stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--indigo); }
.impact-stat span { display: block; font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.pillar { border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; background: #FFFFFF; }
.pillar .label { color: var(--blue); display: flex; align-items: center; gap: 10px; }
.pillar p { font-size: 14.5px; line-height: 1.55; margin: 12px 0 0; }

/* ---------- Partners ---------- */
.partner { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid rgba(21, 24, 66, 0.12); border-radius: 18px; background: #FFFFFF; }
.partner:hover { border-color: var(--teal); box-shadow: 0 16px 34px rgba(21, 24, 66, 0.12); transform: translateY(-4px); }
.partner b { font-size: 16px; font-weight: 500; line-height: 1.3; }
.partner span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 60px; align-items: center; }
.donate-title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.04; margin: 18px 0 0; text-wrap: pretty; }
.donate-copy { font-size: 16.5px; line-height: 1.7; color: var(--on-dark); max-width: 46ch; margin: 20px 0 0; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.amount-chip {
  padding: 11px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 400;
  background: transparent; color: rgba(243, 245, 251, 0.9); border: 1px solid rgba(243, 245, 251, 0.4); transition: all .25s ease;
}
.amount-chip:hover { border-color: var(--cream); }
.amount-chip[aria-pressed="true"] { background: var(--cream); color: var(--indigo); border-color: var(--cream); font-weight: 700; }
.amount-note { font-size: 13.5px; line-height: 1.55; color: rgba(243, 245, 251, 0.8); margin-top: 14px; max-width: 44ch; min-height: 2.6em; }
.vpa-line { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--on-dark); margin-top: 18px; word-break: break-all; }

.qr-card-wrap { justify-self: center; width: 100%; max-width: 420px; }
.qr-card { position: relative; background: #FFFFFF; border-radius: 28px; padding: 26px; box-shadow: 0 34px 70px rgba(0, 0, 0, 0.3); color: var(--ink); }
.qr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px dashed rgba(21, 24, 66, 0.28); }
.qr-head .merchant { font-size: 14px; font-weight: 700; line-height: 1.3; margin-top: 5px; }
.bank-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo); border: 1px solid rgba(43, 46, 120, 0.3); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.qr-box { position: relative; margin-top: 22px; border-radius: 18px; overflow: hidden; background: #FFFFFF; padding: 16px; }
.qr-code { width: 100%; aspect-ratio: 1; background: var(--ink); -webkit-mask: url(../assets/qr-upi.svg) center / contain no-repeat; mask: url(../assets/qr-upi.svg) center / contain no-repeat; }
.js .qr-code[data-qr-code] { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.js .qr-code[data-qr-code].is-in { clip-path: inset(0 0 0% 0); }
.qr-scan { position: absolute; left: 0; right: 0; top: -18%; height: 18%; background: linear-gradient(180deg, rgba(58, 166, 168, 0), rgba(58, 166, 168, 0.5)); border-bottom: 2px solid var(--teal); opacity: 0; pointer-events: none; }
.qr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 5px #FFFFFF; padding: 2px; }
.qr-logo img { display: block; width: 100%; height: 100%; }
.qr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.qr-foot .vpa { font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.app-tags span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid rgba(21, 24, 66, 0.18); border-radius: 999px; padding: 5px 10px; }
.qr-hindi { text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); margin-top: 16px; }
@keyframes kmus-scan { 0% { top: -18%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 104%; opacity: 0; } }

.use-card { padding: 26px; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.use-card:hover { border-color: var(--blue); box-shadow: 0 16px 34px rgba(21, 24, 66, 0.1); transform: translateY(-3px); }
.use-card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--indigo); }
.use-card p { font-size: 14.5px; line-height: 1.55; margin: 12px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--indigo); color: var(--cream); padding: 90px var(--gutter); }
.cta-band .row { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
.cta-band .t { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; margin-top: 16px; text-wrap: pretty; }
.cta-band .btn { padding: 16px 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 70px var(--gutter) 44px; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .mark { width: 76px; height: 76px; padding: 3px; }
.footer-name { font-family: var(--serif); font-size: 26px; color: var(--cream); line-height: 1.1; }
.site-footer .label { color: var(--gold-light); }
.footer-est { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; font-size: 14.5px; }
.footer-links a { color: var(--on-dark); }
.footer-links a:hover { color: var(--gold); }
.footer-text { font-size: 14.5px; line-height: 1.6; margin-top: 14px; }
.footer-vpa { font-family: var(--mono); font-size: 13px; color: var(--cream); word-break: break-all; }
.footer-btn { display: inline-block; margin-top: 16px; padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(243, 245, 251, 0.35); color: var(--cream); font-size: 14px; }
.footer-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-base { max-width: 1280px; margin: 46px auto 0; padding-top: 22px; border-top: 1px solid rgba(243, 245, 251, 0.16); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-rule { height: 3px; background: var(--grad-brand); }

/* ---------- Projects page ---------- */
.proj-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.proj-index { position: sticky; top: 104px; }
.proj-index-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.proj-index-list a { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 10px; color: var(--ink); transition: background .3s ease, color .3s ease; }
.proj-index-list a:hover { background: rgba(42, 93, 158, 0.08); color: var(--ink); }
.proj-index-list a.is-active { background: var(--indigo); color: var(--cream); }
.proj-index-list a span:first-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; }
.proj-index-list a span:last-child { font-size: 14px; line-height: 1.3; }
.proj-index .label { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.proj-list { display: flex; flex-direction: column; gap: 110px; min-width: 0; }
.project { scroll-margin-top: 110px; min-width: 0; }
.project-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid rgba(21, 24, 66, 0.16); }
.project-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.06; margin: 12px 0 0; text-wrap: pretty; color: var(--indigo); }
.project-stat { text-align: right; border-left: 2px solid rgba(58, 166, 168, 0.45); padding-left: 18px; }
.project-stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1; color: var(--blue); }
.project-stat span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-top: 7px; max-width: 18ch; margin-left: auto; }
.frame { position: relative; overflow: hidden; background: var(--mist); border: 1px solid var(--line); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-banner { height: clamp(260px, 36vw, 440px); border-radius: 22px; margin-top: 26px; }
.frame-shot { aspect-ratio: 3 / 2; border-radius: 14px; }
.frame.is-empty {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(58, 166, 168, 0.14), transparent 70%),
    radial-gradient(60% 70% at 10% 95%, rgba(237, 186, 69, 0.16), transparent 70%),
    var(--mist);
}
.frame.is-empty .ph { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted-2); }
.frame.is-empty .ph img { position: static; width: 64px; height: 64px; opacity: 0.55; }
.frame.is-empty .ph span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; max-width: 30ch; line-height: 1.6; }
.caption { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-top: 10px; }
.two-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 34px; margin-top: 38px; }
.two-lists .label { padding-bottom: 10px; border-bottom: 1px solid rgba(21, 24, 66, 0.12); }
.dot-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.dot-list li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
/* Leaf bullets */
.dot-list li::before { content: ""; flex: none; width: 7px; height: 10px; border-radius: 0 100% 0 100%; background: var(--grad-leaf); margin-top: 6px; transform: rotate(35deg); }
.dot-list.teal li { color: var(--muted); }
.dot-list.teal li::before { background: var(--grad-figure); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; margin-top: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.gallery figcaption { font-size: 12.5px; line-height: 1.45; color: var(--muted); }

@media (max-width: 960px) {
  .proj-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .proj-index {
    top: 68px; z-index: 50; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter);
    background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(21, 24, 66, 0.08);
  }
  .proj-index .label { display: none; }
  .proj-index-list { flex-direction: row; overflow-x: auto; gap: 6px; margin: 0; scrollbar-width: none; }
  .proj-index-list::-webkit-scrollbar { display: none; }
  .proj-index-list a { flex: none; white-space: nowrap; border: 1px solid rgba(21, 24, 66, 0.12); border-radius: 999px; padding: 8px 14px; }
  .proj-index-list a.is-active { border-color: var(--indigo); }
  .proj-list { gap: 80px; }
  .project { scroll-margin-top: 140px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-top: 140px; padding-bottom: 80px; }
.notfound .mark { width: 96px; height: 96px; padding: 3px; margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
