/* =========================================================
   Kannada Sangha — ಕನ್ನಡ ಸಂಘ
   Palette: haladi (turmeric yellow) + kumkuma (vermilion red)
   — the colours of the Kannada flag — on temple-stone darks
   and sandalwood ivories.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --haladi: #F6C21C;
  --haladi-2: #FFDB6E;
  --kumkuma: #C8162B;
  --kumkuma-2: #E23A3A;
  --gold: #D9A441;
  --gold-2: #F0CF86;
  --saffron: #E8711E;

  --ink: #120A07;
  --ink-2: #1C110D;
  --ink-3: #2A1914;
  --ivory: #FBF4E6;
  --sand: #F3E6CC;
  --cream: #F7EDDC;

  --muted: rgba(247, 237, 220, .68);
  --muted-dark: rgba(18, 10, 7, .68);
  --line: rgba(247, 237, 220, .12);
  --line-dark: rgba(18, 10, 7, .12);

  --f-display: "Fraunces", "Baloo Tamma 2", Georgia, serif;
  --f-kn: "Baloo Tamma 2", "Noto Sans Kannada", sans-serif;
  --f-body: "Manrope", "Noto Sans Kannada", system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 22px;
  --gutter: clamp(16px, 4vw, 48px);
}

html[lang="kn"] {
  --f-display: "Baloo Tamma 2", "Fraunces", serif;
  --f-body: "Noto Sans Kannada", "Manrope", system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="kn"] body { line-height: 1.8; }
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--haladi); color: var(--ink); }
section[id] { scroll-margin-top: 70px; }

.container { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; position: relative; }
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.light { background: var(--ivory); color: var(--ink); }

/* ---------- Type ---------- */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--kumkuma); margin-bottom: 22px;
}
.kicker::before { content: ""; width: 36px; height: 2px; background: linear-gradient(90deg, var(--haladi), var(--kumkuma)); }
.kicker--gold { color: var(--haladi); }
html[lang="kn"] .kicker { letter-spacing: .06em; font-size: .92rem; }

.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.h2 em { font-style: italic; color: var(--kumkuma); font-weight: 400; }
.section:not(.light) .h2 em, .heritage .h2 em, .join .h2 em { color: var(--haladi); }
html[lang="kn"] .h2 { line-height: 1.32; letter-spacing: 0; font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.9rem); }
html[lang="kn"] em { font-style: normal; font-weight: inherit; }
.kn-inline { font-family: var(--f-kn); font-style: normal; color: var(--haladi); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted-dark); margin-top: 26px; max-width: 58ch; }
.lead--dark { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), color .35s, background .35s;
}
.btn svg { transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--haladi); color: var(--ink); box-shadow: 0 14px 34px -14px rgba(246, 194, 28, .7); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--kumkuma), var(--kumkuma-2));
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn--primary:hover { color: #fff; box-shadow: 0 18px 40px -14px rgba(200, 22, 43, .7); }
.btn--primary:hover::before { transform: none; }
.btn--ghost { color: var(--cream); background: rgba(255, 255, 255, .04); border: 1px solid rgba(247, 237, 220, .28); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(246, 194, 28, .1); border-color: var(--haladi); }
.btn--small { padding: 10px 18px; font-size: .9rem; background: var(--kumkuma); color: #fff; }
.btn--small:hover { background: var(--kumkuma-2); }
.btn--block { width: 100%; }
html[lang="kn"] .btn { padding-top: 14px; padding-bottom: 12px; }

/* ---------- Loader (flag curtain) ---------- */
.loader { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.loader__half { position: absolute; left: 0; right: 0; height: 50.5%; transition: transform 1.1s var(--ease); }
.loader__half--top { top: 0; background: var(--haladi); }
.loader__half--bottom { bottom: 0; background: var(--kumkuma); }
.loader__mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-kn); font-weight: 800; font-size: clamp(7rem, 22vw, 13rem); color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .25);
  animation: markIn 1s var(--ease) both;
  transition: opacity .5s, transform 1s var(--ease);
}
@keyframes markIn { from { opacity: 0; transform: scale(.6) rotate(-8deg); filter: blur(10px); } }
body.loaded .loader__half--top { transform: translateY(-101%); }
body.loaded .loader__half--bottom { transform: translateY(101%); }
body.loaded .loader__mark { opacity: 0; transform: scale(1.8); }

/* ---------- Language wipe ---------- */
.wipe { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; }
.wipe i { flex: 1; transform: translateX(-101%); }
.wipe i:first-child { background: var(--haladi); }
.wipe i:nth-child(2) { background: var(--kumkuma); }
.wipe b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-kn); font-weight: 800; font-size: clamp(3rem, 10vw, 7rem); color: #fff;
  opacity: 0; text-shadow: 0 6px 30px rgba(0, 0, 0, .25);
}
.wipe.go i { animation: wipe 1s var(--ease) forwards; }
.wipe.go i:nth-child(2) { animation-delay: .06s; }
.wipe.go b { animation: wipeWord 1s var(--ease) forwards; }
@keyframes wipe { 0% { transform: translateX(-101%); } 42%, 58% { transform: translateX(0); } 100% { transform: translateX(101%); } }
@keyframes wipeWord { 0%, 25% { opacity: 0; transform: scale(.9); } 45%, 58% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: scale(1.1); } }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--haladi), var(--saffron), var(--kumkuma)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px var(--gutter);
  transition: transform .55s var(--ease), background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(18, 10, 7, .74); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); padding-block: 12px; border-color: var(--line); }
.nav.hidden { transform: translateY(-105%); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--cream); position: relative; z-index: 2; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; padding-top: 5px;
  background: linear-gradient(180deg, var(--haladi) 50%, var(--kumkuma) 50%);
  color: #fff; font-family: var(--f-kn); font-weight: 800; font-size: 1.35rem; line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  box-shadow: 0 0 0 3px rgba(246, 194, 28, .15);
  transition: transform .6s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-360deg); }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; position: relative; padding: 4px 0; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--haladi); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover, .nav__links a.active { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav__join-mobile { display: none; }
.nav__actions { display: flex; flex: none; align-items: center; gap: 12px; position: relative; z-index: 2; }

.lang {
  position: relative; display: flex; padding: 3px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .05);
}
.lang__opt { position: relative; z-index: 1; width: 42px; height: 32px; display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: var(--muted); transition: color .45s; }
.lang__opt[data-lang="kn"] { font-family: var(--f-kn); font-size: 1.15rem; padding-top: 4px; }
.lang__thumb { position: absolute; top: 3px; left: 3px; width: 42px; height: 32px; border-radius: 999px; background: var(--haladi); transition: transform .55s var(--ease), background .55s; box-shadow: 0 4px 14px -4px rgba(246, 194, 28, .7); }
html[lang="kn"] .lang__thumb { transform: translateX(42px); background: var(--kumkuma); box-shadow: 0 4px 14px -4px rgba(200, 22, 43, .8); }
html[lang="en"] .lang__opt[data-lang="en"] { color: var(--ink); }
html[lang="kn"] .lang__opt[data-lang="kn"] { color: #fff; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav.open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
  --px: 0; --py: 0; --sy: 0;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -4;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(200, 22, 43, .5), transparent 70%),
    linear-gradient(180deg, #06030a 0%, #150812 38%, #2f0c16 72%, #4a1712 100%);
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 3s ease 1s;
  background: radial-gradient(ellipse 55% 40% at 50% 92%, rgba(255, 183, 51, .35), transparent 70%);
}
.hero.lit .hero__sky::after { opacity: 1; }

.hero__stars { position: absolute; inset: 0 0 35% 0; z-index: -3; }
.hero__stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff6dd; opacity: .2; animation: twinkle var(--t, 4s) ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 50% { opacity: .9; transform: scale(1.4); } }

.hero__moon {
  position: absolute; top: 15%; right: 12%; z-index: -3;
  width: clamp(60px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #FFF8E0, #F5DC96 52%, #D9A441);
  box-shadow: 0 0 60px 18px rgba(246, 194, 28, .22), 0 0 180px 70px rgba(246, 194, 28, .1);
  transform: translate(calc(var(--px) * -18px), calc(var(--py) * -18px + var(--sy) * .25px));
  transition: transform .8s var(--ease);
}

.hero__letters { position: absolute; inset: 0; z-index: -2; pointer-events: none; transform: translate(calc(var(--px) * 26px), calc(var(--py) * 26px)); transition: transform 1s var(--ease); }
.hero__letters span {
  position: absolute; font-family: var(--f-kn); font-weight: 800; line-height: 1;
  color: rgba(246, 194, 28, .075);
  animation: drift var(--t) ease-in-out infinite alternate; animation-delay: var(--dl);
}
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(-8deg); } to { transform: translate3d(var(--dx), var(--dy), 0) rotate(8deg); } }

.hero__rangoli {
  position: absolute; left: 50%; top: 42%; z-index: -1; pointer-events: none;
  width: min(118vmin, 1000px); aspect-ratio: 1; opacity: .5;
  transform: translate(calc(-50% + var(--px) * -14px), calc(-50% + var(--py) * -14px + var(--sy) * .3px));
  transition: transform .9s var(--ease);
}
.rangoli path { fill: none; stroke: var(--gold); stroke-width: .55; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.rangoli path.f { fill: rgba(200, 22, 43, 0); transition: fill 2s ease 1.6s; }
.rangoli circle { fill: var(--gold); opacity: 0; transition: opacity 1.5s ease 1.8s; }
.rangoli .ring { animation: spin 160s linear infinite; }
.rangoli .ring.rev { animation-direction: reverse; animation-duration: 220s; }
.is-drawn path { animation: draw 2.6s var(--ease) forwards; animation-delay: var(--d, 0s); }
.is-drawn path.f { fill: rgba(200, 22, 43, .16); }
.is-drawn circle { opacity: .75; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.hero__content {
  position: relative; z-index: 2; text-align: center; max-width: 1180px;
  padding: 110px 0 clamp(170px, 21vw, 300px);
  transform: translateY(calc(var(--sy) * .35px));
  opacity: calc(1 - var(--sy) / 700);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(246, 194, 28, .35); background: rgba(246, 194, 28, .07);
  color: var(--haladi-2); font-weight: 600; font-size: .92rem; letter-spacing: .03em;
  backdrop-filter: blur(6px);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--haladi); box-shadow: 0 0 0 0 rgba(246, 194, 28, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(246, 194, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(246, 194, 28, 0); } }

.hero__title {
  font-family: var(--f-kn); font-weight: 800; letter-spacing: 0;
  font-size: clamp(3rem, min(9.5vw, 14vh), 8rem);
  line-height: 1.2; margin: .28em 0 .05em;
}
.hero__title .w {
  display: inline-block;
  padding: .14em .06em .26em; margin: -.14em 0 -.26em;
  background: linear-gradient(90deg, #F0CF86, #F6C21C 18%, #FFF4C8 32%, #F6C21C 46%, #E8711E 64%, #E23A3A 78%, #F0CF86 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 28px rgba(246, 166, 28, .25));
  opacity: 0; transform: translateY(46px) scale(.96);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
  transition-delay: calc(var(--i) * .2s + .25s);
  animation: shimmer 8s linear infinite;
}
.hero.lit .hero__title .w { opacity: 1; transform: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

.hero__tagline { font-family: var(--f-display); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.7rem); color: var(--gold-2); }
html[lang="kn"] .hero__tagline { font-style: normal; font-weight: 600; }
.hero__sub { max-width: 640px; margin: 16px auto 0; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.12rem); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.hero .fade { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.hero.lit .fade { opacity: 1; transform: none; }

.hero__land { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; }
.hero__land::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--ink)); }
.palace-photo {
  display: block; width: 100%;
  height: clamp(280px, 64vh, 760px);
  object-fit: cover; object-position: 50% 78%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
  opacity: 0; filter: brightness(.35) saturate(.6);
  transform: translateY(calc(var(--sy) * .06px));
  transition: opacity 1.6s ease .3s, filter 2.8s ease 1s;
}
.hero.lit .palace-photo { opacity: 1; filter: none; }
@media (max-width: 640px) { .palace-photo { height: 46vh; object-position: 50% 80%; } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 34px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 56px; background: linear-gradient(var(--haladi), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: -1px; top: -20px; width: 3px; height: 20px; background: var(--haladi); border-radius: 2px; animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 60px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; }
.reveal.in { animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; translate: 0 44px; } to { opacity: 1; translate: 0 0; } }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about__bg-letter {
  position: absolute; right: -6vw; top: 8%; pointer-events: none; user-select: none;
  font-family: var(--f-kn); font-weight: 800; line-height: 1; font-size: clamp(20rem, 46vw, 46rem);
  color: transparent; -webkit-text-stroke: 2px rgba(200, 22, 43, .08);
  transform: translateY(calc(var(--about-p, 0) * -120px)) rotate(calc(var(--about-p, 0) * 8deg));
}
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  position: relative; overflow: hidden; background: #fff; border-radius: var(--r); padding: 30px 26px;
  border: 1px solid var(--line-dark);
  box-shadow: 0 30px 50px -40px rgba(90, 30, 10, .45);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--haladi), var(--kumkuma)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.stat.in::before { transform: none; }
.stat:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(90, 30, 10, .55); }
.stat__num { display: flex; align-items: baseline; gap: 2px; }
.stat__num b { font-family: var(--f-display); font-size: clamp(2.1rem, 3.6vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__num span { font-family: var(--f-display); font-size: 2rem; font-weight: 800; color: var(--kumkuma); }
.stat p { margin-top: 10px; color: var(--muted-dark); font-weight: 600; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(64px, 8vw, 110px); }
.pillar {
  position: relative; overflow: hidden; padding: 36px 32px 40px; border-radius: var(--r); background: var(--sand);
  transition: transform .55s var(--ease), box-shadow .55s, background .4s;
}
.pillar:hover { transform: translateY(-10px); background: #fff; box-shadow: 0 40px 60px -40px rgba(90, 30, 10, .5); }
.pillar__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--haladi); margin-bottom: 24px; transition: transform .6s var(--ease), background .4s, color .4s; }
.pillar:hover .pillar__icon { transform: rotate(-8deg) scale(1.06); background: var(--kumkuma); color: #fff; }
.pillar h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.pillar p { color: var(--muted-dark); position: relative; z-index: 1; }
.pillar__kn { position: absolute; right: 18px; bottom: -34px; font-family: var(--f-kn); font-weight: 800; font-size: 8rem; line-height: 1; color: rgba(200, 22, 43, .08); transition: transform .8s var(--ease), color .5s; }
.pillar:hover .pillar__kn { transform: translateY(-14px) rotate(-6deg); color: rgba(246, 194, 28, .3); }

/* Former names strip */
.names { margin-top: 30px; }
.names__label, .vision__label { font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--kumkuma); margin-bottom: 12px; }
html[lang="kn"] .names__label, html[lang="kn"] .vision__label { letter-spacing: .03em; font-size: .9rem; }
.names__list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; }
.names__list li { position: relative; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-dark); font-weight: 600; font-size: .92rem; }
.names__list li:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 50%; translate: 0 -50%; color: var(--kumkuma); font-weight: 800; }
.names__list .names__now { background: var(--ink); border-color: var(--ink); color: var(--haladi); font-family: var(--f-kn); font-weight: 700; font-size: 1rem; }

/* Impact (what we do) */
.impact__kicker { margin-top: clamp(64px, 8vw, 110px); }
.impact__title { font-family: var(--f-display); font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.2; max-width: 26ch; }
html[lang="kn"] .impact__title { line-height: 1.4; font-weight: 700; }
.about .pillars { margin-top: 36px; grid-template-columns: repeat(4, 1fr); }
.about .pillar { padding: 32px 26px 40px; }
.about .pillar h3 { font-size: 1.35rem; line-height: 1.25; }
html[lang="kn"] .about .pillar h3 { line-height: 1.45; }

/* Logo in the nav / footer mark */
.brand__mark { position: relative; overflow: hidden; }
.brand__mark:has(img) { width: 50px; height: 50px; background: #000; box-shadow: 0 0 0 2px rgba(246, 194, 28, .35); }
.brand__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

/* ---------- Founders + vision ---------- */
.legacy { background: radial-gradient(ellipse 60% 60% at 0% 50%, rgba(246, 194, 28, .08), transparent 70%), var(--ink-2); border-top: 1px solid var(--line); overflow: hidden; }
.legacy__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.legacy__logo {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1; margin: 0;
  display: grid; place-items: center; border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 55%, rgba(246, 194, 28, .16), transparent 62%), #000;
  box-shadow: 0 60px 100px -60px rgba(0, 0, 0, .9);
}
.legacy__rangoli { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; z-index: -1; opacity: .35; }
/* "lighten" drops the logo's black background so the glow and rangoli show through */
.legacy__logo img { width: 92%; height: auto; mix-blend-mode: lighten; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.legacy__fallback {
  display: none; text-align: center; font-family: var(--f-kn); font-weight: 800; line-height: 1.25; padding-bottom: .1em;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  background: linear-gradient(135deg, var(--haladi), var(--saffron) 55%, var(--kumkuma-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legacy__fallback small { display: block; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600; font-size: .5em; }
.legacy__logo figcaption { display: none; position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-family: var(--f-kn); font-weight: 700; font-size: 1.25rem; color: var(--haladi-2); }
.legacy__logo.fallback .legacy__fallback, .legacy__logo.fallback figcaption { display: block; }

.founders { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.founder {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.founder:hover { transform: translateY(-4px); border-color: rgba(246, 194, 28, .45); background: rgba(246, 194, 28, .06); }
.founder__av {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; letter-spacing: .02em; color: var(--ink);
  background: linear-gradient(135deg, var(--haladi-2), var(--haladi) 45%, var(--saffron));
  box-shadow: 0 0 0 3px rgba(246, 194, 28, .14);
}
.founder b { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.founders__more { margin-top: 14px; color: var(--muted); font-style: italic; }
html[lang="kn"] .founders__more { font-style: normal; }
.vision { margin-top: 34px; padding: 24px 28px; border-left: 3px solid var(--haladi); border-radius: 0 18px 18px 0; background: linear-gradient(90deg, rgba(246, 194, 28, .09), transparent); }
.vision__label { color: var(--haladi); margin-bottom: 8px; }
.vision p:last-child { font-family: var(--f-display); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--cream); }

.gratitude { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; font-style: italic; }
html[lang="kn"] .gratitude { font-style: normal; }
.kn-tag { font-family: var(--f-kn); font-weight: 700; color: var(--haladi); }

/* ---------- Heritage ---------- */
.heritage { position: relative; background: var(--ink); }
.heritage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 80% 30%, rgba(200, 22, 43, .14), transparent 70%), radial-gradient(ellipse 50% 40% at 10% 80%, rgba(246, 194, 28, .08), transparent 70%);
}
.heritage__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); padding: 80px 0 40px; }
.heritage__head { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.heritage__hint { color: var(--muted); max-width: 32ch; }
.heritage__viewport { overflow: visible; }
.heritage__track { display: flex; gap: 26px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2)); will-change: transform; }
.era {
  position: relative; overflow: hidden; flex: none;
  width: clamp(290px, 30vw, 400px); min-height: clamp(330px, 46vh, 420px);
  display: flex; flex-direction: column; padding: 32px;
  border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--ink-3), var(--ink-2) 60%);
  transition: transform .6s var(--ease), border-color .5s;
}
.era::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--haladi), var(--kumkuma)); }
.era:nth-child(even)::before { background: linear-gradient(90deg, var(--kumkuma), var(--haladi)); }
.era:hover { transform: translateY(-10px) rotate(-.6deg); border-color: rgba(246, 194, 28, .4); }
.era__glyph { position: absolute; right: -8px; top: 34px; font-family: var(--f-kn); font-weight: 800; font-size: 10rem; line-height: 1; color: rgba(246, 194, 28, .07); transition: color .6s, transform .8s var(--ease); }
.era:hover .era__glyph { color: rgba(246, 194, 28, .16); transform: scale(1.08) rotate(-4deg); }
.era__idx { font-size: .75rem; letter-spacing: .2em; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.era__year { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.1; color: var(--haladi); letter-spacing: -.02em; }
.era h3 { font-family: var(--f-display); font-size: 1.55rem; font-weight: 600; margin: auto 0 10px; line-height: 1.2; position: relative; }
.era p:last-child { color: var(--muted); position: relative; }
.heritage__bar { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.heritage__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--haladi), var(--kumkuma)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Jnanpith ---------- */
.jnana__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.jnana__big {
  font-family: var(--f-display); font-weight: 800; line-height: .82; letter-spacing: -.05em;
  font-size: clamp(9rem, 20vw, 17rem); padding-right: .05em;
  background: linear-gradient(180deg, var(--haladi) 10%, var(--saffron) 50%, var(--kumkuma) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="kn"] .jnana__big { line-height: 1; }
.jnana__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 72px); perspective: 1200px; }
.jcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 240px;
  padding: 26px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line-dark);
  transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .5s;
  box-shadow: 0 24px 40px -36px rgba(90, 30, 10, .5);
}
.jcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(246, 194, 28, .28), transparent 55%);
}
.jcard:hover { box-shadow: 0 40px 60px -36px rgba(90, 30, 10, .6); }
.jcard:hover::after { opacity: 1; }
.jcard__year { align-self: flex-start; font-weight: 800; font-size: .82rem; letter-spacing: .14em; color: #fff; background: var(--kumkuma); padding: 4px 10px; border-radius: 999px; }
.jcard h3 { font-family: var(--f-kn); font-weight: 700; font-size: 1.5rem; line-height: 1.35; margin: 18px 0 0; }
.jcard__en { font-family: var(--f-display); font-style: italic; color: var(--muted-dark); font-size: .98rem; }
.jcard__work { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-dark); display: flex; flex-direction: column; font-weight: 600; }
.jcard__work small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--kumkuma); font-weight: 800; }
html[lang="kn"] .jcard__work small { letter-spacing: .04em; font-size: .8rem; }

/* ---------- Culture ---------- */
.culture { background: var(--ink); overflow: hidden; }
.culture__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 72px); }
.ccard {
  --tint: 246, 194, 28;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 310px; padding: 28px; border-radius: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(170deg, rgba(var(--tint), .1), transparent 55%), var(--ink-2);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .5s;
}
.ccard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--tint), .28), transparent 45%);
}
.ccard::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--tint), .9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.ccard:hover { transform: translateY(-8px); }
.ccard:hover::before, .ccard:hover::after { opacity: 1; }
.ccard__kn {
  position: absolute; top: 20px; left: 26px; right: 18px;
  font-family: var(--f-kn); font-weight: 800; font-size: clamp(2.3rem, 3.3vw, 3rem); line-height: 1.3; padding-bottom: .2em;
  background: linear-gradient(135deg, var(--haladi), var(--saffron) 55%, var(--kumkuma-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .7s var(--ease);
  transform-origin: left top;
}
.ccard:hover .ccard__kn { transform: scale(1.08) translateY(-4px); }
.ccard h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 6px; }
.ccard p { color: var(--muted); font-size: .95rem; }

/* ---------- Quote ---------- */
.quote { position: relative; height: 220vh; background: linear-gradient(180deg, #7d0d1b, var(--kumkuma) 30%, #9e1022 100%); }
.quote__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); }
.quote__rangoli { position: absolute; width: min(140vmin, 1200px); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; opacity: .22; pointer-events: none; }
.quote__rangoli path { stroke: var(--haladi-2); }
.quote__text { position: relative; font-family: var(--f-kn); font-weight: 800; font-size: clamp(2.3rem, 6.6vw, 5.8rem); line-height: 1.38; max-width: 1150px; }
.quote__text span { color: rgba(255, 236, 200, .2); transition: color .5s, text-shadow .5s; }
.quote__text span.on { color: var(--haladi-2); text-shadow: 0 0 40px rgba(255, 219, 110, .35); }
.quote__en { position: relative; margin-top: 28px; font-family: var(--f-display); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.5rem); color: rgba(255, 244, 220, .9); max-width: 40ch; }
html[lang="kn"] .quote__en { font-style: normal; font-weight: 600; }
.quote__by { position: relative; margin-top: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--haladi-2); }
html[lang="kn"] .quote__by { letter-spacing: .04em; font-size: 1rem; }

/* ---------- Events ---------- */
.events__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(48px, 6vw, 72px); align-items: start; }
.feature-event {
  position: sticky; top: 100px; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 3.4vw, 40px); border-radius: 28px;
  background: radial-gradient(ellipse at 100% 0%, rgba(200, 22, 43, .55), transparent 60%), var(--ink);
  color: var(--cream);
  box-shadow: 0 50px 80px -50px rgba(90, 20, 10, .8);
}
.feature-event__rangoli { position: absolute; width: 520px; aspect-ratio: 1; right: -200px; top: -200px; z-index: -1; opacity: .35; }
.feature-event__rangoli .ring { animation-duration: 60s; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(246, 194, 28, .14); color: var(--haladi-2); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
html[lang="kn"] .tag { letter-spacing: .02em; font-size: .9rem; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--haladi); animation: pulse 2s infinite; }
.feature-event h3 { font-family: var(--f-display); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.12; font-weight: 600; margin: 20px 0 10px; }
html[lang="kn"] .feature-event h3 { line-height: 1.35; }
.feature-event__meta { color: var(--haladi-2); font-weight: 700; }
.feature-event__desc { color: var(--muted); margin-top: 12px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0; }
.cd { padding: 14px 6px 12px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.cd b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.15; color: var(--haladi); font-variant-numeric: tabular-nums; }
.cd b.bump { animation: bump .5s var(--ease); }
@keyframes bump { from { transform: translateY(-30%); opacity: .2; } }
.cd small { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
html[lang="kn"] .cd small { letter-spacing: 0; font-size: .82rem; }

.elist { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-dark); }
.eitem {
  position: relative; isolation: isolate; text-decoration: none;
  display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center;
  padding: 28px 16px; border-top: 1px solid var(--line-dark);
  transition: padding .5s var(--ease);
}
.eitem::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sand); border-radius: 18px; transform: scaleY(.4); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.eitem:hover { padding-left: 26px; }
.eitem:hover::before { transform: none; opacity: 1; }
.eitem__date { display: flex; flex-direction: column; align-items: flex-start; }
.eitem__date b { font-family: var(--f-display); font-weight: 800; font-size: 2.3rem; line-height: 1.05; color: var(--kumkuma); }
.eitem__date small { font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
html[lang="kn"] .eitem__date b { font-size: 1.9rem; line-height: 1.3; }
html[lang="kn"] .eitem__date small { letter-spacing: 0; }
.eitem h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; }
.eitem p { color: var(--muted-dark); margin-top: 4px; }
.eitem__arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); transition: background .4s, color .4s, transform .5s var(--ease), border-color .4s; }
.eitem:hover .eitem__arrow { background: var(--kumkuma); border-color: var(--kumkuma); color: #fff; transform: rotate(-45deg); }

/* ---------- Learn ---------- */
.learn { background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(246, 194, 28, .08), transparent 70%), var(--ink); }
.learn__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); margin-top: clamp(48px, 6vw, 72px); align-items: start; }
.showcase {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 36px);
  padding: 26px clamp(22px, 3vw, 34px); border-radius: 26px; margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(246, 194, 28, .14), rgba(200, 22, 43, .14)); border: 1px solid rgba(246, 194, 28, .25);
}
.showcase__letter {
  flex: none; width: clamp(110px, 13vw, 150px); aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center;
  font-family: var(--f-kn); font-weight: 800; font-size: clamp(4.2rem, 7vw, 6rem); line-height: 1; padding-top: .14em;
  background: var(--haladi); color: var(--ink); box-shadow: 0 20px 40px -20px rgba(246, 194, 28, .7);
}
.showcase__letter.pop { animation: pop .7s var(--ease); }
@keyframes pop { from { transform: scale(.6) rotate(-10deg); opacity: 0; } }
.showcase__roman { font-family: var(--f-display); font-style: italic; font-size: 2rem; color: var(--haladi-2); line-height: 1.2; }
.showcase__word { margin-top: 6px; font-family: var(--f-kn); font-weight: 700; font-size: 1.6rem; }
.showcase__word i { font-family: var(--f-display); font-weight: 400; font-size: 1.05rem; color: var(--muted); margin-left: 6px; }
.showcase__meaning { color: var(--muted); }
.alpha__label { font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
html[lang="kn"] .alpha__label { letter-spacing: .03em; font-size: .9rem; }
.alpha { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.letter {
  position: relative; overflow: hidden; aspect-ratio: 1.1; border-radius: 16px; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.letter .k { font-family: var(--f-kn); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; padding-top: .15em; transition: transform .45s var(--ease), color .3s; }
.letter .r { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-family: var(--f-display); font-style: italic; font-size: .85rem; color: var(--haladi-2); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); }
.letter:hover { transform: translateY(-4px); border-color: rgba(246, 194, 28, .5); }
.letter:hover .k, .letter.on .k { transform: translateY(-8px); }
.letter:hover .r, .letter.on .r { opacity: 1; transform: none; }
.letter.on { background: var(--kumkuma); border-color: var(--kumkuma); }
.letter.on .r { color: #fff; }
.letter:focus-visible, .phrase:focus-visible, .btn:focus-visible, .lang:focus-visible { outline: 2px solid var(--haladi); outline-offset: 3px; }

.phrases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phrase { height: 136px; perspective: 1000px; cursor: pointer; border: 0; background: none; text-align: left; border-radius: 18px; }
.phrase__in { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .85s var(--ease); }
.phrase.flip .phrase__in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face--front { background: var(--ink-2); border: 1px solid var(--line); transition: border-color .3s; }
.phrase:hover .face--front { border-color: rgba(246, 194, 28, .5); }
.face--front b { font-family: var(--f-kn); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.4; color: var(--cream); }
.face--front small { margin-top: 2px; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: .95rem; color: var(--muted); }
.face--front::after { content: "↻"; position: absolute; right: 14px; top: 10px; color: var(--haladi); opacity: .6; font-size: 1rem; }
.face--back { transform: rotateY(180deg); background: linear-gradient(135deg, var(--haladi), #F5A623); color: var(--ink); }
.face--back i { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; }
.face--back span { font-weight: 600; opacity: .8; }

/* ---------- Events: Kannada Rajyotsava 2025 ---------- */
.rj {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 1fr;
  margin-top: clamp(44px, 6vw, 72px); border-radius: 30px;
  background: var(--ink); color: var(--cream);
  box-shadow: 0 60px 100px -60px rgba(90, 30, 10, .65);
}
.rj::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--haladi) 50%, var(--kumkuma) 50%); }
.rj__photo { position: relative; display: block; min-height: 380px; padding: 0; border: 0; overflow: hidden; background: #000; cursor: zoom-in; }
.rj__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.8s var(--ease); }
.rj.in .rj__photo img { transform: scale(1); }
.rj__photo:hover img { transform: scale(1.04); }
.rj__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, rgba(18, 10, 7, .55)); pointer-events: none; }
.rj__badge {
  position: absolute; z-index: 1; left: 20px; top: 24px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(246, 194, 28, .4);
  background: rgba(18, 10, 7, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--haladi-2); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
html[lang="kn"] .rj__badge { letter-spacing: .02em; font-size: .9rem; }
.rj__body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  background: radial-gradient(ellipse at 100% 0%, rgba(200, 22, 43, .35), transparent 60%), var(--ink);
}
.rj__when { color: var(--haladi); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
html[lang="kn"] .rj__when { letter-spacing: .03em; font-size: .95rem; }
.rj__title { margin: 12px 0 6px; font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.08; }
.rj__title span { background: linear-gradient(120deg, var(--haladi-2), var(--haladi) 35%, var(--saffron) 70%, var(--kumkuma-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
html[lang="kn"] .rj__title { font-weight: 700; line-height: 1.35; }
.rj__sub { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--gold-2); }
html[lang="kn"] .rj__sub { font-style: normal; font-weight: 600; }
.rj__text { margin-top: 16px; color: var(--muted); }
.rj__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.rj__tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: .88rem; font-weight: 600; }
.rj .btn { align-self: flex-start; }

/* Mosaic gallery */
.rj-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense;
  grid-auto-rows: clamp(150px, 17vw, 230px); gap: 14px; margin-top: 18px;
  scroll-margin-top: 90px;
}
.rj-shot { position: relative; isolation: isolate; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: var(--sand); cursor: zoom-in; }
.rj-shot--wide { grid-column: span 2; }
.rj-shot--tall { grid-row: span 2; }
.rj-shot img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease) var(--d, 0s), transform .9s var(--ease);
}
.rj-shot.in img { clip-path: inset(0 0 0 0); }
.rj-shot:hover img, .rj-shot:focus-visible img { transform: scale(1.06); }
.rj-shot::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: linear-gradient(180deg, transparent 50%, rgba(18, 10, 7, .78)); }
.rj-shot__cap {
  position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px;
  color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.35; text-align: left;
  opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .55s var(--ease);
}
.rj-shot:hover::after, .rj-shot:focus-visible::after { opacity: 1; }
.rj-shot:hover .rj-shot__cap, .rj-shot:focus-visible .rj-shot__cap { opacity: 1; transform: none; }
.rj-shot:focus-visible, .rj__photo:focus-visible { outline: 3px solid var(--haladi); outline-offset: 3px; }
@media (hover: none) {
  .rj-shot::after, .rj-shot__cap { opacity: 1; transform: none; }
}

/* Full-screen photo viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 70px 80px;
  background: rgba(10, 5, 4, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(100%, 1400px); }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 170px); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lightbox__fig figcaption { display: flex; gap: 14px; align-items: baseline; color: var(--cream); font-weight: 600; text-align: center; }
.lightbox__fig small { color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--cream);
  font-size: 2rem; line-height: 1; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--haladi); color: var(--ink); border-color: var(--haladi); outline: none; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 18px; top: 50%; translate: 0 -50%; }

@media (max-width: 900px) {
  .rj { grid-template-columns: 1fr; }
  .rj__photo { min-height: 0; aspect-ratio: 3 / 2; }
  .rj__photo::after { background: linear-gradient(180deg, transparent 65%, rgba(18, 10, 7, .5)); }
  .rj-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 36vw; }
}
@media (max-width: 560px) {
  .rj-gallery { gap: 10px; grid-auto-rows: 42vw; }
  .rj-shot { border-radius: 14px; }
  .rj-shot__cap { left: 12px; right: 12px; bottom: 10px; font-size: .85rem; }
  .lightbox { padding: 64px 12px 90px; }
  .lightbox__nav--prev, .lightbox__nav--next { top: auto; bottom: 20px; translate: none; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
}

/* ---------- Join ---------- */
.join { overflow: hidden; background: var(--ink); }
.join__blob { position: absolute; width: 50vw; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .32; pointer-events: none; }
.join__blob--y { background: var(--haladi); left: -15vw; top: -10%; animation: blob 18s ease-in-out infinite alternate; }
.join__blob--r { background: var(--kumkuma); right: -15vw; bottom: -20%; opacity: .45; animation: blob 22s ease-in-out infinite alternate-reverse; }
@keyframes blob { to { transform: translate(10vw, 8vw) scale(1.15); } }
.join__card {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px); border-radius: 34px;
  background: rgba(28, 17, 13, .6); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .8);
}
.perks { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.perks li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--haladi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23120A07' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }

.join__formwrap { position: relative; }
.join__form { display: grid; gap: 14px; transition: opacity .5s, transform .6s var(--ease); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input {
  width: 100%; padding: 26px 18px 10px; border-radius: 14px; outline: none;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--cream);
  font: inherit; font-size: 1rem; transition: border-color .3s, background .3s, box-shadow .3s;
}
.field label { position: absolute; left: 18px; top: 18px; color: var(--muted); pointer-events: none; transition: transform .35s var(--ease), color .3s; transform-origin: left top; }
.field input:focus { border-color: var(--haladi); background: rgba(246, 194, 28, .06); box-shadow: 0 0 0 4px rgba(246, 194, 28, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--haladi-2); }
.field input.bad { border-color: var(--kumkuma-2); }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.chips legend { color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: .92rem; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); user-select: none; }
.chip span:hover { border-color: var(--haladi); }
.chip input:checked + span { background: var(--haladi); color: var(--ink); border-color: var(--haladi); transform: scale(1.04); }
.chip input:focus-visible + span { outline: 2px solid var(--haladi); outline-offset: 2px; }
.form-error { display: none; color: #ff8e8e; font-weight: 600; font-size: .92rem; }
.form-error.show { display: block; }
.join__success { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; opacity: 0; pointer-events: none; transform: scale(.9); transition: opacity .6s .2s, transform .8s var(--ease) .2s; }
.join__thanks { font-family: var(--f-kn); font-weight: 800; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1.3; background: linear-gradient(135deg, var(--haladi), var(--kumkuma-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.join__success p:last-child { color: var(--muted); font-size: 1.1rem; }
.join__card.done .join__form { opacity: 0; transform: translateY(20px); pointer-events: none; }
.join__card.done .join__success { opacity: 1; transform: none; pointer-events: auto; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: #0a0504; padding: 90px 0 30px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__tag { margin-top: 16px; color: var(--muted); max-width: 30ch; }
.footer h4 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--haladi); margin-bottom: 14px; }
html[lang="kn"] .footer h4 { letter-spacing: .04em; font-size: .95rem; }
.footer__grid > div > a:not(.brand) { display: block; text-decoration: none; color: var(--muted); padding: 4px 0; transition: color .3s, transform .4s var(--ease); }
.footer__grid > div > a:not(.brand):hover { color: var(--cream); transform: translateX(6px); }
.footer__big {
  margin: 50px 0 10px; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--f-kn); font-weight: 800; line-height: 1.25; font-size: clamp(5rem, 22vw, 19rem);
  background: linear-gradient(180deg, rgba(246, 194, 28, .95), rgba(200, 22, 43, .55) 60%, rgba(200, 22, 43, 0) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__slogan { font-family: var(--f-kn); font-weight: 700; color: var(--haladi); font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .jnana__grid, .culture__grid { grid-template-columns: repeat(2, 1fr); }
  .about .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    background: radial-gradient(ellipse at 50% 120%, rgba(200, 22, 43, .5), transparent 60%), var(--ink);
    clip-path: circle(0 at calc(100% - 40px) 40px);
    transition: clip-path .8s var(--ease);
  }
  .nav__links a { font-family: var(--f-display); font-size: 2rem; color: var(--cream); }
  .nav__join-mobile { display: block; color: var(--haladi) !important; }
  .nav.open .nav__links { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav.open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
  .burger { display: block; }
  .nav__actions .btn--small { display: none; }

  .about__grid, .events__grid, .learn__grid, .join__card { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .legacy__grid { grid-template-columns: 1fr; }
  .legacy__logo { max-width: 440px; width: 100%; margin-inline: auto; }
  .feature-event { position: relative; top: 0; }

  .heritage__sticky { position: relative; height: auto; padding: 100px 0; }
  .heritage__head { flex-direction: column; align-items: flex-start; gap: 0; }
  .heritage__hint { margin-top: 18px; }
  .heritage__track { flex-direction: column; width: auto; padding-inline: var(--gutter); transform: none !important; }
  .era { width: 100%; min-height: 280px; }
  .heritage__bar { display: none; }

  .jnana__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .jnana__grid, .culture__grid { grid-template-columns: 1fr; }
  .about .pillars, .founders { grid-template-columns: 1fr; }
  .ccard { min-height: 230px; }
  .stats { gap: 10px; }
  .stat { padding: 22px 18px; }
  .eitem { grid-template-columns: 72px 1fr; gap: 16px; padding: 22px 8px; }
  .eitem__arrow { display: none; }
  .eitem:hover { padding-left: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .phrases { grid-template-columns: 1fr; }
  .phrase { height: 116px; }
  .alpha { gap: 7px; }
  .showcase { flex-direction: column; text-align: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .footer__bottom { justify-content: center; text-align: center; }
  /* Long English name wraps to two lines so the menu button always stays on screen */
  .nav { gap: 10px; }
  .nav__actions { gap: 8px; }
  .brand { gap: 10px; }
  .brand__mark:has(img) { width: 42px; height: 42px; }
  .brand__name { font-size: 1rem; line-height: 1.15; white-space: normal; max-width: 8.5em; }
  .countdown { gap: 6px; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
