/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
  align-items: center; max-width: 1240px; margin: 0 auto;
  padding: clamp(32px, 7vw, 96px) clamp(16px, 4vw, 48px) clamp(24px, 5vw, 72px);
}
.eyebrow { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--green-deep); margin: 0 0 .8rem; }
.wordmark { margin: 0; font-family: var(--caps); font-weight: 800; line-height: .9; letter-spacing: -.01em; text-transform: uppercase; }
.wordmark .wm-red { display: block; color: var(--red); font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.wordmark .wm-green { display: block; color: var(--green); font-size: clamp(3.3rem, 8.2vw, 6.9rem); margin-top: .08em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; color: #463f38; max-width: 34rem; margin: 1.4rem 0 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.stats { display: flex; gap: clamp(1.2rem, 4vw, 2.8rem); margin: 2.2rem 0 0; padding-top: 1.4rem; border-top: 2px solid var(--rule); max-width: 30rem; }
.stats div { margin: 0; }
.stats dt { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--green); line-height: 1; }
.stats dd { margin: .3rem 0 0; font-family: var(--sans); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.hero-mosaic { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }
.hero-mosaic .bubble {
  position: absolute; border-radius: 50%; overflow: hidden; background: var(--mint);
  box-shadow: 0 0 0 6px var(--card), 0 10px 30px rgba(38, 34, 31, .18);
  animation: float 7s ease-in-out infinite; cursor: pointer;
  transition: box-shadow .2s ease;
}
.hero-mosaic .bubble:hover { box-shadow: 0 0 0 6px var(--green), 0 10px 30px rgba(38, 34, 31, .22); }
.hero-mosaic .bubble img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hero-mosaic .bubble { animation: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mosaic { max-width: 420px; order: -1; }
}

/* ---------- Sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px); }
.section-head h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; color: var(--red); font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin: 0; line-height: 1; }
.section-head h2 .hi { font-family: 'Anek Devanagari', sans-serif; font-weight: 700; text-transform: none; color: var(--green); font-size: .7em; margin-left: .3em; }
.section-head p { color: var(--muted); margin: .6rem 0 0; font-size: 1.05rem; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 1.6rem 0 1.4rem; }
.search { display: flex; align-items: center; gap: .5rem; flex: 1 1 260px; max-width: 380px; background: var(--card); border-radius: 999px; padding: .15rem 1rem; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--green); }
.search input { border: 0; background: transparent; outline: 0; padding: .65rem 0; width: 100%; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button {
  border: 0; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: .88rem;
  padding: .55em 1.05em; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink);
  transition: background .15s, color .15s, box-shadow .15s;
}
.filters button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.count { margin-left: auto; color: var(--muted); font-family: var(--sans); font-size: .9rem; }


/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: clamp(14px, 2vw, 26px); }
.card {
  position: relative; background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  padding: 10px; cursor: pointer; text-align: left; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(38, 34, 31, .06), 0 22px 44px rgba(38, 34, 31, .14); }
.card .frame { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--mint-2); overflow: hidden; }
.card .frame img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2, .7, .3, 1); }
.card:hover .frame img { scale: 1.05; }
.card .times { position: absolute; left: 10px; top: 10px; z-index: 2; font-family: var(--sans); font-weight: 600; font-size: .8rem; background: rgba(255, 253, 249, .92); color: var(--ink); padding: .35em .75em .2em; border-radius: 999px; }
.card-body { padding: 14px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--display); font-weight: 700; color: var(--red); font-size: 1.35rem; letter-spacing: -.015em; margin: 0; line-height: 1.1; }
.card .hi-name { font-weight: 600; color: var(--green-deep); font-size: 1.02rem; margin-top: .15rem; }
.card .snippet { color: #5a5249; font-size: .98rem; line-height: 1.7; margin: .5rem 0 .8rem; max-height: 5.1em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; }
.empty { text-align: center; color: var(--muted); padding: 2rem; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 6px; border-radius: 16px; }
  .card .frame { border-radius: 12px; }
  .card h3 { font-size: 1.05rem; }
  .card .snippet { display: none; }
  .card .times { font-size: .7rem; }
  .count { margin-left: 0; }
}

/* ---------- YouTube ---------- */
.btn-yt { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 6px 18px rgba(0, 0, 0, .06); }
.btn-yt:hover { box-shadow: inset 0 0 0 1.5px #ff0000, 0 6px 18px rgba(255, 0, 0, .12); }
.nav-yt { display: inline-flex; align-items: center; gap: .45rem; }
.yt-band {
  display: block; overflow: hidden; text-decoration: none; color: #fff; background: #173b26; border-radius: 28px;
  box-shadow: 0 20px 50px rgba(23, 59, 38, .25); transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.yt-band:hover { transform: translateY(-3px); }
.yt-photo { width: 100%; aspect-ratio: 2000 / 330; object-fit: cover; transition: scale .8s cubic-bezier(.2, .7, .3, 1); }
.yt-band:hover .yt-photo { scale: 1.02; }
.yt-row { position: relative; display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); padding: clamp(20px, 3vw, 32px) clamp(22px, 4vw, 48px);
  background: radial-gradient(circle at 92% 0%, rgba(244, 185, 66, .22), transparent 40%), linear-gradient(120deg, #1d3325 0%, #173b26 60%, #2e6b3a 100%); }
.yt-big { width: clamp(56px, 7vw, 80px); flex: none; filter: drop-shadow(0 8px 20px rgba(255, 0, 0, .35)); }
.yt-copy { flex: 1; }
.yt-copy b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -.02em; line-height: 1.1; }
.yt-copy span { display: block; opacity: .8; margin-top: .4rem; font-size: 1.05rem; }
.yt-go { flex: none; font-family: var(--sans); font-weight: 700; background: #fff; color: var(--ink); border-radius: 999px; padding: .75em 1.3em; }
@media (max-width: 640px) { .yt-photo { aspect-ratio: 16 / 7; object-position: 30% 50%; } .yt-row { flex-wrap: wrap; } .yt-go { width: 100%; text-align: center; } }

/* ---------- Page bits ---------- */
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-top { padding-top: clamp(28px, 5vw, 64px); }
.page-title { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; color: var(--red); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .95; margin: 0; }
.page-title .hi { font-family: 'Anek Devanagari', sans-serif; font-weight: 600; color: var(--green); font-size: .5em; letter-spacing: 0; margin-left: .2em; }
.page-top .section-head > p:last-child { color: var(--muted); font-size: 1.1rem; margin: .7rem 0 0; }

/* ---------- Profile dialog ---------- */
.profile { border: 0; padding: 0; border-radius: 18px; width: min(880px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.profile::backdrop { background: rgba(30, 26, 22, .55); backdrop-filter: blur(3px); }
.profile[open] { animation: pop .25s cubic-bezier(.2, .8, .3, 1.1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.profile .close { position: absolute; top: 10px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.6rem; line-height: 1; background: var(--paper); }
.profile-body { display: grid; grid-template-columns: 300px 1fr; }
.profile-side { background: var(--mint); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.profile-side .frame { border-radius: 20px; aspect-ratio: 1; overflow: hidden; background: var(--mint-2); }
.profile-side .frame img { width: 100%; height: 100%; object-fit: cover; }
.profile-side .thumbs { display: flex; gap: 8px; }
.profile-side .thumbs button { width: 52px; height: 52px; padding: 0; border: 3px solid transparent; cursor: pointer; overflow: hidden; background: none; }
.profile-side .thumbs button[aria-pressed="true"] { border-color: var(--green); }
.profile-side .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.profile-main { padding: 30px 32px 28px; overflow: auto; max-height: calc(100vh - 32px); }
.profile-main h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; color: var(--red); font-size: 2.3rem; line-height: 1; margin: 0 40px 0 0; }
.profile-main .hi-name { font-weight: 600; font-size: 1.2rem; color: var(--green-deep); margin-top: .3rem; }
.profile-main .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .9rem 0 1rem; }
.lang-toggle { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 3px; margin-bottom: .6rem; }
.lang-toggle button { border: 0; background: none; border-radius: 999px; padding: .35em 1em; cursor: pointer; font-weight: 600; font-size: .9rem; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.profile-main .translated { font-size: .85rem; color: var(--muted); font-style: italic; margin: -.3rem 0 0; }
.profile-main .bio p { font-size: 1.06rem; line-height: 1.7; margin: 0 0 .9rem; color: #3b342e; }
.profile-main h5 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--muted); margin: 1.4rem 0 .5rem; }
.profile-main ul.appear { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .95rem; }
.profile-main ul.appear li { display: flex; gap: .6rem; }
.profile-main ul.appear b { font-family: var(--sans); font-size: .85rem; min-width: 96px; color: var(--green-deep); }
.profile-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
@media (max-width: 720px) {
  .profile-body { grid-template-columns: 1fr; }
  .profile-side { padding: 20px 20px 16px; flex-direction: row; align-items: flex-end; }
  .profile-side .frame { width: 140px; flex: none; }
  .profile-side .thumbs { flex-direction: column; }
  .profile-main { padding: 20px; max-height: none; }
  .profile { overflow: auto; }
  .profile-main h2 { font-size: 1.6rem; }
}


/* ---------- Footer ---------- */
.site-foot { text-align: center; padding: 48px 16px 56px; color: var(--muted); border-top: 2px solid var(--rule); max-width: 1240px; margin: 24px auto 0; }
.site-foot p { max-width: 36rem; margin: .4rem auto; }
.site-foot .small { font-size: .85rem; }
.foot-mail { margin: .8rem 0 1rem; }
.foot-reader { width: 150px; margin: 0 auto 10px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
