:root {
    --g50: #f0faf0;
    --g100: #d6f0d6;
    --g200: #aad8aa;
    --g300: #72bc72;
    --g400: #3d9e3d;
    --g500: #2d8a2d;
    --g600: #1f6e1f;
    --g700: #155015;
    --g800: #0d360d;
    --ink: #0e1a0e;
    --ink2: #2a3d2a;
    --ink3: #4a604a;
    --muted: #7a947a;
    --rule: #ddeedd;
    --cream: #fafefa;
    --white: #ffffff;
    --fb: 'DM Sans', sans-serif;
    --fh: 'Sora', sans-serif;
    --fm: 'Roboto Mono', monospace;
    --fk: 'Caveat', cursive;
    --fte: 'Noto Sans Telugu', sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* Telugu font override for body when lang=te */
body.lang-te {
    font-family: var(--fte), var(--fb);
}

body.lang-te .hero-title,
body.lang-te .sec-h,
body.lang-te .conn-title {
    font-family: var(--fte), var(--fh);
    font-weight: 800;
    line-height: 1.3;
}

body.lang-te .hero-hand,
body.lang-te .conn-hand {
    font-family: var(--fte), var(--fk);
}

body.lang-te .b-quote {
    font-family: var(--fte), var(--fk);
}

body.lang-te .nav-brand {
    font-family: var(--fte), var(--fk);
}

body.lang-te .ft-logo {
    font-family: var(--fte), var(--fk);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    font-family: var(--fb);
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6
}

img {
    display: block;
    max-width: 100%
}

a {
    text-decoration: none;
    color: inherit
}

::-webkit-scrollbar {
    width: 4px
}

::-webkit-scrollbar-track {
    background: var(--g50)
}

::-webkit-scrollbar-thumb {
    background: var(--g400);
    border-radius: 4px
}

/* ── NAV ── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    background: rgba(250, 254, 250, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--rule);
    transition: box-shadow .3s var(--ease)
}

#nav.scrolled {
    box-shadow: 0 2px 20px rgba(45, 138, 45, .1)
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fk);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g600)
}

.nav-brand span {
    color: var(--g400)
}

.nav-items {
    display: flex;
    align-items: center;
    gap: .2rem;
    list-style: none;
    margin-left: auto;
}

.nav-items a {
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink3);
    padding: 6px 13px;
    border-radius: 100px;
    transition: background .2s, color .2s
}

.nav-items a:hover {
    background: var(--g50);
    color: var(--g600)
}

.nav-items .ig-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--g50);
    border: 1px solid var(--g200);
    color: var(--g600);
    margin-left: .5rem;
    font-weight: 600
}

.nav-items .ig-pill:hover {
    background: var(--g100)
}

/* Language toggle button in nav */
.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--g50);
    border: 1.5px solid var(--g200);
    color: var(--g600);
    padding: 5px 13px;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    margin-left: .3rem;
    font-family: inherit
}

.lang-toggle-btn:hover {
    background: var(--g100);
    border-color: var(--g300)
}

.lang-toggle-btn .lang-icon {
    font-size: .9rem
}

.hbg {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px
}

.hbg span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .3s var(--ease)
}

/* ── MOBILE OVERLAY ── */
#mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 950;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem
}

#mob-overlay.open {
    display: flex
}

.mob-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink3);
    transition: background .2s
}

.mob-close-btn:hover {
    background: var(--g50);
    color: var(--g600)
}

#mob-overlay a {
    font-family: var(--fh);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
    opacity: 0;
    transform: translateY(18px);
    animation: mup .35s var(--ease) forwards
}

#mob-overlay a:nth-child(2) {
    animation-delay: .04s
}

#mob-overlay a:nth-child(3) {
    animation-delay: .09s
}

#mob-overlay a:nth-child(4) {
    animation-delay: .13s
}

#mob-overlay a:nth-child(5) {
    animation-delay: .17s
}

#mob-overlay a:nth-child(6) {
    animation-delay: .21s
}

#mob-overlay a:nth-child(7) {
    animation-delay: .25s
}

#mob-overlay a:nth-child(8) {
    animation-delay: .29s
}

#mob-overlay a:hover {
    color: var(--g500)
}

/* Mobile lang button inside overlay */
.mob-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--g50);
    border: 1.5px solid var(--g200);
    color: var(--g600);
    padding: 8px 22px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    opacity: 0;
    transform: translateY(18px);
    animation: mup .35s .33s var(--ease) forwards
}

.mob-lang-btn:hover {
    background: var(--g100)
}

@keyframes mup {
    to {
        opacity: 1;
        transform: none
    }
}

/* ── LANGUAGE PICKER MODAL/BOTTOMSHEET ── */
#lang-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .3s var(--ease);
    pointer-events: none
}

#lang-backdrop.visible {
    opacity: 1;
    pointer-events: all
}

/* Desktop: centered modal */
#lang-picker {
    position: fixed;
    z-index: 9999;
    background: var(--white);
    border-radius: 28px;
    padding: 2.5rem 2.5rem 2rem;
    width: 420px;
    max-width: 90vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.94);
    opacity: 0;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
    pointer-events: none;
}

#lang-picker.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all
}

/* Mobile: bottomsheet */
@media(max-width:640px) {
    #lang-picker {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
        border-radius: 28px 28px 0 0;
        padding: 2rem 1.75rem 2.5rem;
        min-height: 50vh;
        max-height: 65vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #lang-picker.visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all
    }

    /* drag handle */
    #lang-picker::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        /* background: var(--rule); */
        border-radius: 2px;
        margin: 0 auto 1.75rem;
        flex-shrink: 0;
    }
}

.lang-picker-header {
    text-align: center;
    margin-bottom: 1.75rem
}

.lang-picker-emoji {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    display: block
}

.lang-picker-title {
    font-family: var(--fh);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .4rem
}

.lang-picker-sub {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.55
}

.lang-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    margin-bottom: 1.25rem
}

.lang-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.5rem 1rem;
    border: 2px solid var(--rule);
    border-radius: 20px;
    cursor: pointer;
    background: var(--cream);
    transition: all .25s var(--ease);
    position: relative;
}

.lang-opt:hover {
    border-color: var(--g300);
    background: var(--g50);
    transform: translateY(-2px)
}

.lang-opt.selected {
    border-color: var(--g500);
    background: var(--g50);
    box-shadow: 0 0 0 3px rgba(45, 138, 45, .12)
}

.lang-opt.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: .75rem;
    font-weight: 800;
    color: var(--g500);
}

.lang-opt-flag {
    font-size: 2rem;
    line-height: 1
}

.lang-opt-name {
    font-family: var(--fh);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink)
}

.lang-opt-native {
    font-size: .8rem;
    color: var(--muted);
    font-family: var(--fte)
}

.lang-confirm-btn {
    width: 100%;
    padding: 13px;
    border-radius: 100px;
    background: var(--g500);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(45, 138, 45, .3);
    font-family: inherit;
}

.lang-confirm-btn:hover {
    background: var(--g600);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(45, 138, 45, .4)
}

.lang-confirm-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none
}

/* ── HERO ── */
#hero {
    height: 100vh;
    padding-top: 60px;
    display: grid;
    grid-template-columns: 40% 60%
}

.hero-l {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem 4rem 3.5rem;
    background: var(--white);
    height: 100%;
    overflow-y: auto
}

.hero-r {
    position: relative;
    overflow: hidden;
    height: 100%
}

.hero-r-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block
}

.hero-map-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    padding: 8px 18px;
    font-family: var(--fk);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--g700);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15)
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--fm);
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--g500);
    margin-bottom: 1.25rem;
    animation: fu .7s var(--ease) both
}

.eyebrow-bar {
    width: 26px;
    height: 1.5px;
    background: var(--g400)
}

.hero-title {
    font-family: var(--fh);
    font-size: clamp(2.6rem, 4.2vw, 4.8rem);
    font-weight: 800;
    line-height: 1.0;
    color: var(--ink);
    margin-bottom: .4rem;
    animation: fu .7s .08s var(--ease) both
}

.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--g400)
}

.hero-hand {
    font-family: var(--fk);
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    color: var(--g600);
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fu .7s .14s var(--ease) both
}

.hero-desc {
    font-size: .96rem;
    color: var(--ink3);
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 2.25rem;
    animation: fu .7s .2s var(--ease) both
}

.hero-btns {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    animation: fu .7s .26s var(--ease) both
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--g500);
    color: #fff;
    padding: 11px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: .85rem;
    transition: all .25s var(--ease);
    box-shadow: 0 4px 16px rgba(45, 138, 45, .3)
}

.btn-solid:hover {
    background: var(--g600);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(45, 138, 45, .4)
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--rule);
    color: var(--ink3);
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 500;
    font-size: .85rem;
    transition: all .25s var(--ease)
}

.btn-ghost:hover {
    border-color: var(--g400);
    color: var(--g600);
    transform: translateY(-2px)
}

/* ── SHARED ── */
.section {
    padding: 5.5rem 0
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--fm);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--g500);
    margin-bottom: .75rem
}

.sec-label::before {
    content: '';
    width: 22px;
    height: 1.5px;
    background: var(--g400)
}

.sec-h {
    font-family: var(--fh);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1rem
}

.sec-h .hi {
    color: var(--g500)
}

.rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--ease), transform .6s var(--ease)
}

.rv.on {
    opacity: 1;
    transform: none
}

.rv.d1 {
    transition-delay: .1s
}

.rv.d2 {
    transition-delay: .2s
}

.rv.d3 {
    transition-delay: .3s
}

/* ── ABOUT ── */
#about {
    background: var(--white)
}

.about-bento {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto;
    gap: 1.1rem;
    margin-top: 2rem
}

.b-main {
    grid-column: 1;
    grid-row: 1/6;
    background: var(--g50);
    border: 1px solid var(--g100);
    border-radius: 24px;
    padding: 2.5rem
}

.b-main p {
    font-size: .95rem;
    color: var(--ink3);
    line-height: 1.85;
    margin-bottom: 1rem
}

.b-main p:last-child {
    margin-bottom: 0
}

.b-quote {
    font-family: var(--fk);
    font-size: 1.4rem;
    color: var(--g600);
    border-left: 3px solid var(--g400);
    padding: .85rem 1.2rem;
    background: rgba(45, 138, 45, .05);
    border-radius: 0 12px 12px 0;
    margin: 1.2rem 0;
    line-height: 1.4
}

.b-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    transition: border-color .25s, box-shadow .25s, transform .25s
}

.b-card:hover {
    border-color: var(--g300);
    box-shadow: 0 3px 16px rgba(45, 138, 45, .08);
    transform: translateX(3px)
}

.b-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--g50);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem
}

.b-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 600
}

.b-val {
    font-size: .91rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 2px
}

/* ── DEMOGRAPHICS ── */
#demographics {
    background: var(--cream)
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2.5rem
}

.d-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .85rem;
    margin-bottom: .5rem
}

.d-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 1.4rem 1.2rem;
    text-align: center;
    transition: border-color .25s, transform .25s
}

.d-card:hover {
    border-color: var(--g300);
    transform: translateY(-3px)
}

.d-num {
    font-family: var(--fh);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--g600);
    line-height: 1
}

.d-card:nth-child(1) .d-num {
    color: var(--g600)
}

.d-card:nth-child(2) .d-num {
    color: var(--g500)
}

.d-card:nth-child(3) .d-num {
    color: var(--g400)
}

.d-card:nth-child(4) .d-num {
    color: var(--g700)
}

.d-card:nth-child(5) .d-num {
    color: var(--g500)
}

.d-card:nth-child(6) .d-num {
    color: var(--g300)
}

.d-lbl {
    font-size: .72rem;
    color: var(--muted);
    margin-top: 5px
}

.demo-p {
    font-size: .94rem;
    color: var(--ink3);
    line-height: 1.85;
    margin-bottom: .9rem
}

.stats-notice {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0faf0;
    border: 1px solid #aad8aa;
    border-left: 3px solid var(--g400);
    border-radius: 8px;
    padding: 7px 13px;
    font-size: .76rem;
    color: var(--g700);
    margin-top: .6rem;
    margin-bottom: .5rem;
    line-height: 1.5
}

.bars {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 1.75rem
}

.bar-hd {
    display: flex;
    justify-content: space-between;
    font-size: .79rem;
    color: var(--ink3);
    font-weight: 500;
    margin-bottom: 5px
}

.bar-track {
    height: 8px;
    background: var(--g100);
    border-radius: 100px;
    overflow: hidden
}

.bar-fill {
    height: 100%;
    border-radius: 100px;
    width: 0;
    transition: width 1.5s var(--ease)
}

.bm {
    background: linear-gradient(90deg, var(--g600), var(--g300))
}

.bf {
    background: linear-gradient(90deg, var(--g400), var(--g200))
}

.bl {
    background: linear-gradient(90deg, var(--g500), var(--g300))
}

.bc2 {
    background: linear-gradient(90deg, var(--g700), var(--g400))
}

/* ── TEMPLES ── */
#temples {
    background: var(--white);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule)
}

.temples-intro {
    font-size: .94rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 580px;
    margin-bottom: 2.5rem
}

.temples-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .9rem;
    justify-content: center;
}

.t-card {
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .25s, box-shadow .25s;
    position: relative
}

.t-card.on {
    opacity: 1;
    transform: none
}

.t-card:hover {
    border-color: var(--g300);
    box-shadow: 0 5px 22px rgba(45, 138, 45, .09);
    transform: translateY(-4px)
}

.t-body {
    padding: 1.75rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .75rem;
    min-height: 160px;
    justify-content: center;
    position: relative
}

.t-accent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--g400), var(--g300));
    border-radius: 0 0 3px 3px
}

.t-divider {
    width: 30px;
    height: 1px;
    background: var(--g200);
    margin: 0 auto
}

.t-deity-label {
    font-family: var(--fm);
    font-size: .58rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--g500);
    font-weight: 500
}

.t-name {
    font-family: var(--fh);
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35
}

.t-sub {
    font-size: .72rem;
    color: var(--muted);
    font-style: italic
}

.t-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--g400), var(--g300));
    opacity: 0;
    transition: opacity .3s var(--ease)
}

.t-card:hover::after {
    opacity: 1
}

/* ── CULTURE ── */
#culture {
    background: var(--cream)
}

.culture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem
}

.cul-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 24px;
    padding: 2.25rem;
    transition: border-color .25s, box-shadow .25s
}

.cul-card:hover {
    border-color: var(--g200);
    box-shadow: 0 5px 24px rgba(45, 138, 45, .07)
}

.cul-ico {
    width: 44px;
    height: 44px;
    background: var(--g50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem
}

.cul-h {
    font-family: var(--fh);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .8rem
}

.cul-card p {
    font-size: .92rem;
    color: var(--ink3);
    line-height: 1.82;
    margin-bottom: .65rem
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .9rem
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--g50);
    border: 1px solid var(--g100);
    border-radius: 100px;
    padding: 4px 11px;
    font-size: .74rem;
    color: var(--g700);
    font-weight: 500
}

/* ── GOVERNANCE ── */
#governance {
    background: var(--white);
    border-top: 1px solid var(--rule)
}

.gov-intro {
    font-size: .93rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 2.5rem
}

.gov-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem
}

.gov-card {
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 24px;
    overflow: hidden;
    padding: 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: border-color .25s, box-shadow .25s, transform .25s;
    position: relative
}

.gov-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--g500), var(--g300))
}

.gov-card:hover {
    border-color: var(--g300);
    box-shadow: 0 8px 32px rgba(45, 138, 45, .10);
    transform: translateY(-3px)
}

.gov-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--g50);
    border: 1px solid var(--g200);
    border-radius: 100px;
    padding: 3px 11px;
    font-family: var(--fm);
    font-size: .61rem;
    letter-spacing: .07em;
    color: var(--g600);
    margin-bottom: 1rem;
    width: fit-content
}

.gov-name {
    font-family: var(--fh);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: .5rem
}

.gov-party-pill {
    display: inline-flex;
    align-items: center;
    background: #fff8e0;
    border: 1px solid #f0d860;
    border-radius: 100px;
    padding: 3px 10px;
    font-size: .71rem;
    font-weight: 700;
    color: #7a6000;
    margin-bottom: 1.25rem;
    width: fit-content
}

.gov-divider {
    width: 100%;
    height: 1px;
    background: var(--rule);
    margin-bottom: 1.25rem
}

.gov-meta {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.gov-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--muted)
}

.gov-meta-row svg {
    color: var(--g500);
    flex-shrink: 0
}

/* ── LOCATION ── */
#location {
    background: var(--cream)
}

.loc-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3.5rem;
    align-items: start
}

.loc-p {
    font-size: .94rem;
    color: var(--ink3);
    line-height: 1.85;
    margin-bottom: 1.5rem
}

.dist-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: 1rem
}

.dist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: .85rem 1.1rem;
    transition: border-color .2s
}

.dist-row:hover {
    border-color: var(--g300)
}

.dist-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .83rem;
    font-weight: 500;
    color: var(--ink3)
}

.dist-km {
    font-family: var(--fm);
    font-size: .8rem;
    font-weight: 600;
    color: var(--g600);
    background: var(--g50);
    padding: 3px 9px;
    border-radius: 100px
}

.map-wrap {
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--rule);
    box-shadow: 0 6px 30px rgba(45, 138, 45, .1);
    aspect-ratio: 4/3
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none
}

/* ── INSTAGRAM ── */
#instagram {
    background: var(--white);
    border-top: 1px solid var(--rule)
}

.ig-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center
}

.ig-l p {
    font-size: .94rem;
    color: var(--ink3);
    line-height: 1.85;
    margin-bottom: 1.5rem
}

.ig-follow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: #fff;
    border-radius: 100px;
    padding: 11px 26px;
    font-weight: 700;
    font-size: .87rem;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 4px 18px rgba(131, 58, 180, .3)
}

.ig-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 26px rgba(131, 58, 180, .4)
}

.ig-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%
}

.ig-image-wrap img {
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: contain
}

/* ── CONNECT ── */
#connect {
    background: var(--white);
    border-top: 1px solid var(--rule);
    position: relative;
    overflow: hidden
}

.conn-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1
}

.conn-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fm);
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--g500);
    margin-bottom: 1rem
}

.conn-label::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--g400)
}

.conn-hand {
    font-family: var(--fk);
    font-size: 1.65rem;
    color: var(--ink3);
    display: block;
    margin-bottom: .4rem
}

.conn-title {
    font-family: var(--fh);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.15
}

.conn-sub {
    font-size: .94rem;
    color: var(--ink3);
    line-height: 1.8;
    max-width: 430px;
    margin: 0 auto 2.5rem
}

.conn-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap
}

.conn-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1.5px solid var(--rule);
    border-radius: 100px;
    padding: 11px 24px;
    font-size: .86rem;
    color: var(--ink3);
    font-weight: 500;
    background: var(--cream);
    transition: all .25s
}

.conn-link:hover {
    background: var(--g50);
    color: var(--g600);
    border-color: var(--g300);
    transform: translateY(-2px)
}

/* ── FOOTER ── */
footer {
    background: var(--white);
    border-top: 1px solid var(--rule);
    padding: 2.25rem 2rem;
    text-align: center
}

.ft-logo {
    font-family: var(--fk);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--g600)
}

.ft-divider {
    width: 30px;
    height: 1.5px;
    background: var(--rule);
    margin: 1rem auto
}

.ft-copy {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.7
}

/* ── KEYFRAMES ── */
@keyframes fu {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* ── RESPONSIVE ── */
@media(max-width:1020px) {
    #hero {
        height: auto;
        grid-template-columns: 1fr
    }

    .hero-l {
        height: auto;
        justify-content: flex-start
    }

    .hero-r {
        min-height: 320px;
        height: 320px;
        border-top: 1px solid var(--rule)
    }

    .about-bento {
        grid-template-columns: 1fr
    }

    .b-main {
        grid-row: auto
    }

    .demo-grid,
    .ig-layout,
    .loc-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem
    }

    .culture-grid {
        grid-template-columns: 1fr
    }

    .temples-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .gov-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:768px) {
    .nav-items {
        display: none
    }

    .hbg {
        display: flex
    }

    .section {
        padding: 4rem 0
    }

    .hero-l {
        padding: 2.5rem 1.5rem
    }

    .hero-r {
        min-height: 260px;
        height: 260px
    }

    .d-cards {
        grid-template-columns: 1fr 1fr
    }

    .gov-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:480px) {
    .temples-grid {
        grid-template-columns: 1fr 1fr
    }

    .conn-links {
        flex-direction: column;
        align-items: center
    }
}

/* » PWA Install Banner ···················· */
#pwa-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 9999;
    width: calc(100% - 2.5rem);
    max-width: 420px;
    background: var(--white);
    border: 1.5px solid var(--g200);
    border-radius: 20px;
    padding: .9rem 1rem .9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(45, 138, 45, .15), 0 2px 8px rgba(0, 0, 0, .08);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .4s ease;
    opacity: 0;
    pointer-events: none;
}

#pwa-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.pwa-banner-l {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.pwa-banner-icon {
    font-size: 1.75rem;
    line-height: 1;
    background: var(--g50);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--g100);
    flex-shrink: 0;
}

.pwa-banner-icon img {
    border-radius: 12px;
}

.pwa-banner-title {
    font-family: var(--fk);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.pwa-banner-sub {
    font-size: .72rem;
    color: var(--muted);
    margin-top: 2px;
}

.pwa-banner-r {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.pwa-install-btn {
    background: var(--g500);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 7px 18px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, transform .2s;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    background: var(--g600);
    transform: translateY(-1px);
}

.pwa-dismiss-btn {
    background: none;
    border: 1px solid var(--rule);
    border-radius: 100px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: var(--muted);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.pwa-dismiss-btn:hover {
    border-color: var(--g300);
    color: var(--ink);
}

/* hide on desktop — PWA install is mainly a mobile thing */
@media (min-width: 769px) {
    #pwa-banner {
        display: none;
    }
}

/* » iOS Install Tooltip ···················· */
#ios-tooltip {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    border-radius: 14px;
    padding: .85rem 1.25rem;
    font-size: .82rem;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

#ios-tooltip.show {
    opacity: 1;
}

.ios-tip-arrow {
    width: 12px;
    height: 12px;
    background: var(--ink);
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

/* » PWA Install Section (mobile only) ······ */
/* hidden on desktop, visible on mobile only */
.pwa-section {
    display: none;
    /* padding: 3rem 0; */
    background: var(--cream);
    border-top: 1px solid var(--rule);
}

@media (max-width: 768px) {
    .pwa-section {
        display: none;
    }
}

/* ── card ── */
.pwa-card {
    position: relative;
    background: var(--g700);
    /* border-radius: 28px; */
    padding: 2rem 1.75rem 1.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* decorative background orb */
.pwa-orb {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(114, 188, 114, .25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ── top row ── */
.pwa-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pwa-app-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    backdrop-filter: blur(8px);
}

.pwa-app-icon img {
    border: 1.5px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
}



.pwa-badge {
    /* display: inline-flex; */
    display: none;
    align-items: center;
    background: rgba(114, 188, 114, .2);
    border: 1px solid rgba(114, 188, 114, .35);
    color: var(--g200);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-family: var(--fm);
}

/* ── body text ── */
.pwa-label {
    font-family: var(--fm);
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--g300);
    margin-bottom: .35rem;
}

.pwa-heading {
    font-family: var(--fh);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: .6rem;
}

.pwa-desc {
    font-size: .84rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.75;
}

/* ── features row ── */
.pwa-features {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: .85rem 1rem;
}

.pwa-feat {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: 1;
    justify-content: center;
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
}

.pwa-feat-icon {
    font-size: .95rem;
}

.pwa-feat-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, .15);
    flex-shrink: 0;
}

/* ── install button ── */
.pwa-section-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: #fff;
    color: var(--g700);
    border: none;
    border-radius: 16px;
    padding: 1rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--fh);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
    letter-spacing: .01em;
}

.pwa-section-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}

.pwa-section-btn:active {
    transform: translateY(0);
}

.pwa-section-btn.installed {
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .6);
    box-shadow: none;
    cursor: default;
    transform: none;
    border: 1px solid rgba(255, 255, 255, .15);
}

.pwa-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--g50);
    border-radius: 8px;
    color: var(--g600);
    flex-shrink: 0;
    transition: background .2s;
}

.pwa-section-btn.installed .pwa-btn-icon {
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .5);
}

/* ── installed state ── */
.pwa-installed-state {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--g300);
    padding-top: .25rem;
}

.pwa-installed-state.show {
    display: flex;
}

.install-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 !important;
}

/* ── SHARE ── */
.share-section {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--rule);
    /* padding: 1rem 0; */
}

@media (max-width: 768px) {
    .share-section {
        display: block;
    }
}

.share-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--cream);
    /* border: 1px solid var(--rule); */
    /* border-radius: 16px; */
    padding: 1.5rem;
}

.share-strip-title {
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 2px;
    line-height: 1.3;
}

.share-strip-sub {
    font-size: .76rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--g500);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 9px 18px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}

.share-btn:hover {
    background: var(--g600);
    transform: translateY(-1px);
}

.share-btn:active {
    transform: scale(.97);
}

.share-wrap {
    padding: 0 !important;
}

/* ── FOLLOW US ── */
.follow-section {
    background: var(--cream);
    border-top: 1px solid var(--rule);
    padding: 4rem 0;
}

.follow-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.follow-desc {
    font-size: .93rem;
    color: var(--ink3);
    line-height: 1.82;
    max-width: 480px;
    margin: 0 auto 2.25rem;
}

.follow-icons {
    display: flex;
    gap: .85rem;
    justify-content: center;
    flex-wrap: wrap;
}

.follow-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 24px;
    border-radius: 100px;
    font-size: .86rem;
    font-weight: 600;
    /* border: 1.5px solid transparent; */
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
    text-decoration: none;
}

.follow-pill:hover {
    transform: translateY(-3px);
}

/* Instagram */
.follow-pill--ig {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(131, 58, 180, .28);
}

.follow-pill--ig:hover {
    box-shadow: 0 8px 28px rgba(131, 58, 180, .4);
}

/* Threads */
.follow-pill--th {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 4px 16px rgba(14, 26, 14, .18);
}

.follow-pill--th:hover {
    box-shadow: 0 8px 26px rgba(14, 26, 14, .28);
    background: #1a2e1a;
}

/* Facebook */
.follow-pill--fb {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 4px 16px rgba(24, 119, 242, .28);
}

.follow-pill--fb:hover {
    box-shadow: 0 8px 28px rgba(24, 119, 242, .4);
    background: #0d6fdb;
}

/* @media (max-width: 480px) {
    .follow-icons {
        flex-direction: column;
        align-items: center;
    }

    .follow-pill {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
}

.follow-pill .fa-brands {
    font-size: 1.1rem;
    line-height: 1;
} */

@media (max-width: 480px) {
    .follow-icons {
        gap: 1rem;
    }

    .follow-pill {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        font-size: 0;
        /* hide text */
    }

    .follow-pill span {
        display: none;
    }

    .follow-pill .fa-brands {
        font-size: 1.3rem;
    }
}

/* ── RATE & REVIEW ── */
#rate {
    background: var(--cream);
    border-top: 1px solid var(--rule)
}

.rate-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center
}

.rate-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fm);
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--g500);
    margin-bottom: 1rem
}

.rate-label::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--g400)
}

.rate-hand {
    font-family: var(--fk);
    font-size: 1.65rem;
    color: var(--ink3);
    display: block;
    margin-bottom: .4rem
}

.rate-title {
    font-family: var(--fh);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.15
}

.rate-title .hi {
    color: var(--g500)
}

.rate-sub {
    font-size: .94rem;
    color: var(--ink3);
    line-height: 1.8;
    max-width: 460px;
    margin: 0 auto 2rem
}

.rate-emojis {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 2rem
}

.rate-emoji {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--white);
    border: 1.5px solid var(--rule);
    border-radius: 14px;
    transition: border-color .25s, transform .25s
}

.rate-emoji--on {
    border-color: var(--g500);
    background: var(--g50);
    box-shadow: 0 0 0 3px rgba(45, 138, 45, .12);
    transform: translateY(-2px)
}

@media(max-width:480px) {
    .rate-emoji {
        width: 40px;
        height: 40px;
        font-size: 1.1rem
    }
}