/* ==========================================================================
   Vyasa Puja Offerings — "A garland of words"
   Night-temple glow for the occasion, garlands of roses and jasmine strung above, hand-made paper for the words.
   ========================================================================== */

:root {
    /* Temple maroon & gold */
    --night: #2c0b09;
    --night-2: #3a0f0c;
    --night-3: #4e1712;
    --glow: #ffe3a3;
    --marigold: #f2a33a;
    --saffron: #e4712a;
    --gold: #d6a24a;
    --gold-2: #f2d18c;

    /* Paper & ink */
    --paper: #f6eedd;
    --paper-2: #f1e5cc;
    --paper-3: #e7d6b4;
    --paper-hi: #fbf6ea;
    --paper-edge: #d9c49d;
    --ink: #2a1910;
    --ink-2: #56402f;
    --ink-3: #85694f;

    /* Accents */
    --kumkum: #b3261e;
    --kumkum-2: #8c1b14;
    --tulasi: #44653a;

    /* Type */
    --font-display: 'Eczar', 'Tiro Devanagari Sanskrit', Georgia, serif;
    --font-read: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    --font-ui: 'Mukta', 'Segoe UI', system-ui, sans-serif;
    --font-deva: 'Tiro Devanagari Sanskrit', 'Eczar', serif;

    /* Layout */
    --header-h: 68px;
    --container: 1240px;
    --gutter: clamp(1.15rem, 4vw, 2.5rem);
    --radius: 3px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --shadow-paper: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 1px 2px rgba(42, 25, 16, .07), 0 18px 40px -22px rgba(42, 25, 16, .35);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 4px rgba(42, 25, 16, .06), 0 28px 50px -24px rgba(42, 25, 16, .45);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .1 0 0 0 0 .05 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --lotus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M24 3c4 5 6 10 6 15s-2 9-6 11c-4-2-6-6-6-11s2-10 6-15z'/%3E%3Cpath d='M24 29c-3-1-9-3-12-9-1.5-3-1.5-6-1-8 5 1 10 4 13 9'/%3E%3Cpath d='M24 29c3-1 9-3 12-9 1.5-3 1.5-6 1-8-5 1-10 4-13 9'/%3E%3Cpath d='M24 29c-6 1-14 0-20-5 3-2 7-3 11-2'/%3E%3Cpath d='M24 29c6 1 14 0 20-5-3-2-7-3-11-2'/%3E%3C/svg%3E");
    --jasmine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='translate(12 12)' fill='black'%3E%3Cellipse cy='-6.4' rx='4.4' ry='6.2'/%3E%3Cellipse cy='-6.4' rx='4.4' ry='6.2' transform='rotate(72)'/%3E%3Cellipse cy='-6.4' rx='4.4' ry='6.2' transform='rotate(144)'/%3E%3Cellipse cy='-6.4' rx='4.4' ry='6.2' transform='rotate(216)'/%3E%3Cellipse cy='-6.4' rx='4.4' ry='6.2' transform='rotate(288)'/%3E%3C/g%3E%3C/svg%3E");
    --rose: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Ccircle cx='12' cy='12' r='6.4'/%3E%3Ccircle cx='12' cy='6' r='5.8'/%3E%3Ccircle cx='17.7' cy='10.1' r='5.8'/%3E%3Ccircle cx='15.5' cy='16.9' r='5.8'/%3E%3Ccircle cx='8.5' cy='16.9' r='5.8'/%3E%3Ccircle cx='6.3' cy='10.1' r='5.8'/%3E%3C/g%3E%3C/svg%3E");
    --garland-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='28' viewBox='0 0 144 28'%3E%3Cpath d='M0 14H144' stroke='%23c79a3a' stroke-width='1.4' fill='none'/%3E%3Cg fill='%235e9246'%3E%3Cpath d='M30 14c3-1 6-4 6-9-4 1-7 4-6 9z'/%3E%3Cpath d='M30 14c3 1 6 4 6 9-4-1-7-4-6-9z'/%3E%3Cpath d='M66 14c3-1 6-4 6-9-4 1-7 4-6 9z'/%3E%3Cpath d='M66 14c3 1 6 4 6 9-4-1-7-4-6-9z'/%3E%3Cpath d='M102 14c3-1 6-4 6-9-4 1-7 4-6 9z'/%3E%3Cpath d='M102 14c3 1 6 4 6 9-4-1-7-4-6-9z'/%3E%3C/g%3E%3Cg transform='translate(12 14)'%3E%3Ccircle r='9' fill='%23d63a3a' stroke='%23821e1e' stroke-width='.8'/%3E%3Ccircle r='6.2' fill='%23e3524c'/%3E%3Ccircle r='3.6' fill='%23c22f2f'/%3E%3Ccircle r='1.5' fill='%23821e1e'/%3E%3C/g%3E%3Cg transform='translate(48 14)' fill='%23fffbef' stroke='%23cfa968' stroke-width='.7'%3E%3Cellipse cy='-5' rx='3' ry='4.6'/%3E%3Cellipse cy='-5' rx='3' ry='4.6' transform='rotate(72)'/%3E%3Cellipse cy='-5' rx='3' ry='4.6' transform='rotate(144)'/%3E%3Cellipse cy='-5' rx='3' ry='4.6' transform='rotate(216)'/%3E%3Cellipse cy='-5' rx='3' ry='4.6' transform='rotate(288)'/%3E%3Ccircle r='1.8' fill='%23e9b544' stroke='none'/%3E%3C/g%3E%3Cg transform='translate(84 14)'%3E%3Ccircle r='8' fill='%23e0557f' stroke='%23a82a52' stroke-width='.8'/%3E%3Ccircle r='5.2' fill='%23cf3f6b'/%3E%3Ccircle r='2.6' fill='%23b02c58'/%3E%3C/g%3E%3Cg transform='translate(120 14)' fill='%23fffbef' stroke='%23cfa968' stroke-width='.7'%3E%3Cellipse cy='-5' rx='3' ry='4.6'/%3E%3Cellipse cy='-5' rx='3' ry='4.6' transform='rotate(72)'/%3E%3Cellipse cy='-5' rx='3' ry='4.6' transform='rotate(144)'/%3E%3Cellipse cy='-5' rx='3' ry='4.6' transform='rotate(216)'/%3E%3Cellipse cy='-5' rx='3' ry='4.6' transform='rotate(288)'/%3E%3Ccircle r='1.8' fill='%23e9b544' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    min-height: 100vh;
    font-family: var(--font-read);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(1100px 600px at 8% -5%, rgba(242, 163, 58, .10), transparent 60%),
        radial-gradient(900px 520px at 105% 30%, rgba(179, 38, 30, .05), transparent 60%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Hand-made paper grain over everything */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--grain);
    opacity: .22;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2000;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

:focus-visible {
    outline: 2px solid var(--kumkum-2);
    outline-offset: 3px;
}
.site-header :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible, .offer-band :focus-visible, .offer-done :focus-visible, .on-dark :focus-visible {
    outline-color: var(--marigold);
}

::selection { background: var(--marigold); color: var(--night); }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -100px;
    z-index: 3000;
    padding: .7rem 1rem;
    background: var(--marigold);
    color: var(--night);
    font-family: var(--font-ui);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Shared type ---------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-ui);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--kumkum);
}
.kicker::before {
    content: '';
    width: 2.25rem;
    height: 1px;
    background: currentColor;
    opacity: .7;
}
.on-dark .kicker, .kicker.on-dark { color: var(--marigold); }

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -.015em;
    color: var(--ink);
    margin-top: .9rem;
}
.section-title em {
    font-family: var(--font-read);
    font-style: italic;
    font-weight: 400;
    color: var(--kumkum);
}

.deva {
    font-family: var(--font-deva);
    font-weight: 400;
}

.lotus-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gold);
}
.lotus-rule::before, .lotus-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
    opacity: .6;
}
.lotus-rule::after { background: linear-gradient(90deg, currentColor, transparent); }
.lotus-rule i {
    width: 30px; height: 20px;
    background: currentColor;
    -webkit-mask: var(--lotus) center / contain no-repeat;
    mask: var(--lotus) center / contain no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--kumkum);
    --btn-fg: #fff4dc;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 52px;
    padding: .85rem 1.6rem .8rem;
    font-family: var(--font-ui);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 3px var(--btn-bg), inset 0 0 0 4px rgba(255, 236, 200, .35);
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s var(--ease-out); }
.btn:hover { --btn-bg: var(--kumkum-2); transform: translateY(-1px); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-marigold { --btn-bg: var(--marigold); --btn-fg: var(--night); box-shadow: inset 0 0 0 3px var(--btn-bg), inset 0 0 0 4px rgba(44, 11, 9, .28), 0 0 40px -6px rgba(242, 163, 58, .55); }
.btn-marigold:hover { --btn-bg: var(--gold-2); }

.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: currentColor;
    box-shadow: none;
}
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.on-dark .btn-ghost, .btn-ghost.on-dark { --btn-fg: var(--paper); border-color: rgba(242, 209, 140, .45); }
.on-dark .btn-ghost:hover, .btn-ghost.on-dark:hover { --btn-bg: var(--paper); --btn-fg: var(--night); border-color: var(--paper); }

.text-link {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--kumkum);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color .2s ease;
}
.text-link:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    height: var(--header-h);
    background: rgba(44, 11, 9, .9);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(214, 162, 74, .16);
    color: var(--paper);
    transition: background-color .3s ease, border-color .3s ease;
}
.site-header.is-scrolled { background: rgba(44, 11, 9, .96); border-bottom-color: rgba(214, 162, 74, .28); }

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: var(--paper);
}
.brand-mark {
    width: 34px; height: 23px;
    background: var(--marigold);
    -webkit-mask: var(--lotus) center / contain no-repeat;
    mask: var(--lotus) center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(242, 163, 58, .6));
}
.brand-text {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    padding-top: 3px;
}
.brand-text em {
    font-family: var(--font-read);
    font-style: italic;
    font-weight: 400;
    color: var(--gold-2);
    margin-left: .25rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.2rem);
}
.site-nav a {
    position: relative;
    font-family: var(--font-ui);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(246, 238, 221, .72);
    padding: .4rem 0 .3rem;
    transition: color .2s ease;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--marigold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease-out);
}
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after, .site-nav a[aria-current='page']::after { transform: scaleX(1); }
.site-nav a[aria-current='page'] { color: var(--marigold); }

.site-nav a.nav-cta {
    padding: .6rem 1rem .5rem;
    color: var(--marigold);
    border: 1px solid rgba(242, 163, 58, .6);
    border-radius: var(--radius);
    transition: background-color .25s ease, color .25s ease;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta[aria-current='page'] { background: var(--marigold); color: var(--night); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    position: relative;
    color: var(--paper);
}
/* On phones the main action stays in sight, beside the menu button */
.header-offer {
    display: none;
    margin-left: auto;
    align-items: center;
    min-height: 40px;
    padding: .5rem .95rem .4rem;
    font-family: var(--font-ui);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--night);
    background: var(--marigold);
    border-radius: var(--radius);
}
.header-offer:hover { background: var(--gold-2); }
.nav-toggle span:not(.sr-only) {
    position: absolute;
    left: 11px; right: 11px;
    height: 1.5px;
    background: currentColor;
    transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .header-offer { display: inline-flex; }
    .header-inner { gap: .75rem; }
    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem var(--gutter) 1.5rem;
        background: rgba(44, 11, 9, .98);
        border-bottom: 1px solid rgba(214, 162, 74, .25);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
    }
    .nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .25s ease, transform .3s var(--ease-out);
    }
    .site-nav a {
        font-family: var(--font-display);
        font-size: 1.5rem;
        letter-spacing: 0;
        text-transform: none;
        padding: .9rem 0;
        border-bottom: 1px solid rgba(214, 162, 74, .14);
    }
    .site-nav a::after { display: none; }
    .site-nav a.nav-cta { margin-top: 1rem; text-align: center; font-family: var(--font-ui); font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; padding: 1rem; }
}

/* ---------- Dark page heroes (shared by inner pages) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--paper);
    background:
        radial-gradient(700px 360px at 50% 120%, rgba(242, 163, 58, .28), transparent 70%),
        radial-gradient(500px 300px at 85% -10%, rgba(179, 38, 30, .25), transparent 70%),
        var(--night);
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
    isolation: isolate;
}
.page-hero::before {
    content: attr(data-deva);
    position: absolute;
    right: -2vw;
    bottom: -0.32em;
    z-index: -1;
    font-family: var(--font-deva);
    font-size: clamp(9rem, 26vw, 22rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(242, 209, 140, .16);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}
.page-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 10px;
    background: radial-gradient(circle at 50% 100%, var(--paper) 5px, transparent 5.5px) repeat-x;
    background-size: 18px 10px;
}
.page-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.8rem, 8vw, 5.6rem);
    line-height: .95;
    letter-spacing: -.02em;
    margin-top: 1rem;
}
.page-title em {
    font-family: var(--font-read);
    font-weight: 300;
    font-style: italic;
    color: var(--gold-2);
}
.page-lede {
    max-width: 44rem;
    margin-top: 1.25rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: rgba(246, 238, 221, .78);
}

/* ==========================================================================
   HOME
   ========================================================================== */
.hero {
    --valance-h: 18px;
    --pw: clamp(250px, 22vw, 380px);
    --pillar: clamp(34px, 3.4vw, 52px);
    --pgap: 30px;
    position: relative;
    display: block;
    overflow: hidden;
    padding: calc(var(--valance-h) + clamp(3.4rem, 8vh, 4.6rem)) 0 clamp(1.6rem, 4vh, 2.6rem);
    color: var(--paper);
    /* A mandir sanctum: warm lamp-glow behind Maharaj, deep maroon silk all around */
    background:
        radial-gradient(44% 60% at 50% 50%, rgba(255, 170, 70, .38) 0%, rgba(255, 170, 70, 0) 72%),
        radial-gradient(90% 90% at 50% 38%, #6e2218 0%, #45130e 56%, #2c0b09 100%);
    isolation: isolate;
}

/* The pelmet the garlands hang from: kumkum silk, a gold zari line and a scalloped hem */
.hero::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: calc(var(--valance-h) + 14px);
    z-index: -3;
    background:
        radial-gradient(circle at 18px 0, #8f1f17 0 17px, transparent 17.6px) 0 calc(var(--valance-h) - 1px) / 36px 14px repeat-x,
        linear-gradient(var(--gold), var(--gold)) 0 calc(var(--valance-h) - 4px) / 100% 1px no-repeat,
        linear-gradient(#8f1f17, #8f1f17) 0 0 / 100% var(--valance-h) no-repeat;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .4));
}

/* A faint gold lattice on the sanctum wall, fading toward the edges */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background:
        repeating-linear-gradient(45deg, rgba(242, 209, 140, .04) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(-45deg, rgba(242, 209, 140, .04) 0 1px, transparent 1px 28px);
    -webkit-mask-image: radial-gradient(70% 80% at 50% 45%, #000 0, transparent 100%);
    mask-image: radial-gradient(70% 80% at 50% 45%, #000 0, transparent 100%);
}

.hero-garland,
.hero-garland-front {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hero-garland { z-index: -2; }
.hero-garland-front { z-index: 3; animation: fadeIn 1.2s .6s ease-out both; }

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(var(--pw) + 2 * (var(--pillar) + var(--pgap))) minmax(0, 1fr);
    align-items: center;
    gap: 0 2.2rem;
    pointer-events: none;
}
.hero .container { max-width: 1500px; }
.hero-heading, .hero-side { text-wrap: balance; }
.hero-grid a, .hero-grid button, .hero-heading, .hero-side, .hero-portrait { pointer-events: auto; }
.hero.is-flower-hover { cursor: pointer; }

.hero-stage {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0 calc(var(--pillar) + var(--pgap));
}

.hero-heading { text-align: right; }

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: .86;
    letter-spacing: -.025em;
    animation: rise 1.2s var(--ease-out) .35s both;
}
.hero-title .t-big {
    display: block;
    font-size: clamp(3rem, 5.2vw, 4.8rem);
    line-height: .98;
    color: #ffe3a3;
    text-shadow: 0 2px 0 rgba(60, 12, 8, .7), 0 0 38px rgba(255, 170, 70, .5);
    padding-bottom: .08em;
}
.hero-title .t-big > span { display: block; }
.hero-for {
    margin-top: 1.1rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.35;
    letter-spacing: .01em;
    color: var(--paper);
    animation: rise 1.2s var(--ease-out) .5s both;
}
.hero-side { text-align: left; }
.hero-lede {
    max-width: 24rem;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.65;
    color: rgba(246, 230, 194, .86);
    animation: rise 1.2s var(--ease-out) .6s both;
}
.hero-actions {
    display: grid;
    gap: .7rem;
    max-width: 19rem;
    margin-top: 1.5rem;
    animation: rise 1.2s var(--ease-out) .72s both;
}
.hero-actions .btn { width: 100%; }
/* The second action is a quiet link, so the one primary button leads */
.hero-actions .btn-ghost {
    width: auto;
    min-height: 40px;
    justify-self: start;
    padding: .5rem .1rem;
    border-color: transparent;
    border-bottom: 1px solid rgba(242, 209, 140, .5);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: var(--gold-2);
}
.hero-actions .btn-ghost:hover { background: transparent; color: #fff4dc; border-bottom-color: #fff4dc; transform: none; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1.7rem;
    animation: rise 1.2s var(--ease-out) .85s both;
}
.hero-stat {
    padding: 0 1rem;
    border-left: 1px solid rgba(242, 209, 140, .3);
}
.hero-stat:first-child { padding-left: 0; border-left: 0; }
.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 600;
    line-height: 1;
    color: var(--gold-2);
    font-variant-numeric: tabular-nums;
}
.hero-stat span {
    display: block;
    margin-top: .4rem;
    font-family: var(--font-ui);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(246, 230, 194, .8);
}
.hero-note {
    max-width: 24rem;
    margin-top: 1rem;
    font-family: var(--font-read);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(246, 230, 194, .86);
}

.hero-portrait {
    position: relative;
    width: var(--pw);
    aspect-ratio: 3 / 4;
    animation: portraitIn 1.6s var(--ease-out) .1s both;
}
.hero-portrait img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5));
}
/* A pool of lamp-glow behind and beneath him */
.hero-portrait::after {
    content: '';
    position: absolute;
    inset: -4% -30% -2%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(closest-side at 50% 50%, rgba(255, 190, 90, .4) 0, rgba(255, 190, 90, .12) 52%, rgba(255, 190, 90, 0) 78%);
    animation: breathe 6s ease-in-out infinite;
}

/* The invocation, set like an inscription beneath the sanctum */
.hero-inscription {
    position: relative;
    max-width: 44rem;
    margin: clamp(1rem, 2.4vh, 1.7rem) auto 0;
    padding: 0 var(--gutter);
    text-align: center;
    animation: rise 1.1s var(--ease-out) .9s both;
}
.hero-inscription p {
    font-family: var(--font-deva);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.6;
    color: var(--gold-2);
}
.hero-inscription small {
    display: block;
    margin-top: .3rem;
    font-family: var(--font-read);
    font-style: italic;
    font-size: .95rem;
    line-height: 1.5;
    color: rgba(246, 230, 194, .74);
}
.garland-hint {
    position: relative;
    margin: .7rem auto 0;
    padding: 0 var(--gutter);
    text-align: center;
    font-family: var(--font-ui);
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(246, 230, 194, .66);
}
.garland-hint[hidden] { display: none; }

.flower-tip {
    position: absolute;
    z-index: 5;
    min-width: 180px;
    max-width: 280px;
    padding: .75rem 1rem .7rem;
    background: #fffaf0;
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: 0 16px 34px -12px rgba(86, 38, 8, .55), 0 0 0 1px rgba(179, 134, 46, .35);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 14px)) scale(.96);
    transform-origin: bottom center;
    transition: opacity .18s ease, transform .18s ease;
}
.flower-tip.is-visible { opacity: 1; transform: translate(-50%, calc(-100% - 18px)); }
.flower-tip::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -6px;
    width: 12px; height: 12px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
}
.flower-tip.is-below { transform: translate(-50%, 14px) scale(.96); transform-origin: top center; }
.flower-tip.is-below.is-visible { transform: translate(-50%, 18px); }
.flower-tip.is-below::after { bottom: auto; top: -6px; }
.flower-tip::after { left: var(--arrow-x, 50%); }
.flower-tip strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.flower-tip span { display: block; margin-top: .2rem; font-family: var(--font-ui); font-size: .75rem; letter-spacing: .08em; color: var(--ink-3); }
.flower-tip em { display: block; margin-top: .35rem; font-size: .8rem; color: var(--kumkum); }

/* Strip of names, each parted by a jasmine */
.name-strip {
    position: relative;
    overflow: hidden;
    background: var(--kumkum);
    color: #fbe9c9;
    padding: 1.05rem 0 1rem;
    border-top: 1px solid rgba(242, 209, 140, .4);
    border-bottom: 1px solid rgba(242, 209, 140, .4);
}
.name-track {
    display: flex;
    width: max-content;
    animation: nameScroll 120s linear infinite;
}
.name-strip:hover .name-track { animation-play-state: paused; }
.name-item {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    white-space: nowrap;
    font-family: var(--font-read);
    font-style: italic;
    font-size: 1.12rem;
    text-decoration: none;
}
.name-item b { font-family: var(--font-display); font-style: normal; font-weight: 600; }
.name-item small { font-family: var(--font-ui); font-style: normal; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-left: .55rem; }
.name-item::after {
    content: '';
    width: 17px; height: 17px;
    background: #fff4dc;
    -webkit-mask: var(--jasmine) center / contain no-repeat;
    mask: var(--jasmine) center / contain no-repeat;
    opacity: .9;
}
.name-item:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }

/* A garland laid along the seam between two sections, half on each */
.garland-seam {
    position: relative;
    z-index: 2;
    height: 28px;
    margin: -14px 0;
    background: var(--garland-line) repeat-x center / 144px 28px;
    pointer-events: none;
}

/* How to offer: three leaves on the temple wall */
.how {
    text-align: center;
    color: var(--paper);
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(255, 170, 70, .14), transparent 70%),
        linear-gradient(180deg, #2c0b09 0%, #3a0f0c 100%);
}
.how .section-title { color: #ffe3a3; max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.how .section-title em { color: var(--gold-2); }
.how-intro p {
    max-width: 36rem;
    margin: 1.25rem auto 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(246, 230, 194, .86);
}
.how-cta { margin-top: 3.8rem; display: grid; justify-items: center; gap: 1.1rem; }

.status-line {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-ui);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.how .status-line { color: rgba(246, 230, 194, .8); }
.status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #8fd07a;
    box-shadow: 0 0 0 0 rgba(143, 208, 122, .5);
    animation: pulse 2.2s ease-out infinite;
}
.status-dot.is-closed { background: var(--ink-3); animation: none; }

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem 1.6rem;
    max-width: 1100px;
    margin: 4.2rem auto 0;
    text-align: left;
}
.step {
    position: relative;
    padding: 2.9rem 1.7rem 1.9rem;
    background: #531810;
    border: 1px solid rgba(242, 209, 140, .4);
    border-radius: var(--radius);
    box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .8);
}
.step:nth-child(2) { margin-top: 1.4rem; }
.step-num {
    position: absolute;
    left: 50%; top: 0;
    transform: translate(-50%, -50%);
    width: 58px; height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-deva);
    font-size: 1.9rem;
    line-height: 1;
    color: var(--night-2);
    background: var(--marigold);
    box-shadow: 0 0 0 4px #531810, 0 0 0 5px rgba(242, 209, 140, .5);
}
.step h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: #ffe3a3;
}
.step p { margin-top: .65rem; color: rgba(246, 230, 194, .86); line-height: 1.65; text-align: center; }

/* Years: a marigold band; each year is a leaf hung from a small silk valance, like the one over the hero */
.years { background: linear-gradient(180deg, #f5c25c 0%, #eda53d 100%); color: var(--ink); overflow: hidden; }
.years::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(640px 380px at 12% 112%, rgba(255, 238, 190, .55), transparent 70%),
        radial-gradient(560px 320px at 92% -8%, rgba(255, 246, 214, .6), transparent 70%);
    pointer-events: none;
}
.years .section-title { color: var(--ink); margin: 0; }
.years .section-title em { color: var(--kumkum-2); }
.years-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}
.years-head p { max-width: 28rem; color: var(--ink-2); font-size: 1.08rem; }

.year-cards {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.year-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 3.6rem 1.8rem 1.6rem;
    color: var(--ink);
    background: var(--paper-hi);
    border: 1px solid rgba(179, 134, 46, .6);
    border-radius: var(--radius);
    box-shadow: var(--shadow-paper);
    text-decoration: none;
    overflow: hidden;
    transition: transform .5s var(--ease-out), box-shadow .35s ease;
}
.year-card::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 34px;
    background:
        radial-gradient(circle at 18px 15px, var(--gold-2) 0 2px, transparent 2.5px) 0 15px / 36px 18px repeat-x,
        radial-gradient(circle at 18px 0, var(--kumkum) 0 17px, transparent 17.6px) 0 15px / 36px 18px repeat-x,
        linear-gradient(var(--gold), var(--gold)) 0 8px / 100% 2px no-repeat,
        linear-gradient(var(--kumkum), var(--kumkum)) 0 0 / 100% 16px no-repeat;
}
.year-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.year-card .yc-year {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 5.2rem;
    line-height: .9;
    letter-spacing: -.03em;
    color: var(--kumkum-2);
    margin-top: 1.7rem;
    text-align: center;
    transition: color .4s ease;
}
.year-card:hover .yc-year { color: var(--kumkum); }
.year-card .yc-edition {
    text-align: center;
    font-family: var(--font-read);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-2);
    margin-top: .5rem;
}
.year-card .yc-foot {
    margin-top: auto;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(179, 134, 46, .4);
    font-family: var(--font-ui);
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.yc-foot .arrow { color: var(--kumkum); transition: transform .3s var(--ease-out); }
.year-card:hover .arrow { transform: translateX(4px); }
.year-card .yc-badge {
    position: absolute;
    top: 2.7rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    padding: .3rem .8rem .25rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--paper-hi);
    background: var(--kumkum);
}
.year-card .yc-badge.is-archive { background: transparent; color: var(--ink-2); border: 1px solid rgba(86, 64, 47, .5); }
.year-card.is-lectures .yc-year {
    font-family: var(--font-deva);
    font-weight: 400;
    font-size: 4.2rem;
    color: var(--kumkum-2);
    margin-top: 2rem;
}

/* About: one calm centred column */
.about-inner { max-width: 46rem; text-align: center; }
.about-quote { position: relative; }
.about-quote .lotus-rule { max-width: 22rem; margin: 0 auto 1.6rem; }
.about-quote blockquote p.deva {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    line-height: 1.5;
    color: var(--kumkum);
}
.about-quote blockquote footer {
    margin-top: .8rem;
    font-style: italic;
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--ink-2);
}
.about-text { margin-top: 3rem; }
.about-text .section-title { margin-top: 0; margin-bottom: 1.5rem; text-wrap: balance; }
.about-text p {
    font-size: 1.18rem;
    line-height: 1.8;
    color: var(--ink-2);
}
.about-text p + p { margin-top: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: var(--night);
    color: rgba(246, 238, 221, .75);
    padding: 5rem 0 2.5rem;
    text-align: center;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 10px;
    background: radial-gradient(circle at 50% 0, var(--paper) 5px, transparent 5.5px) repeat-x;
    background-size: 18px 10px;
}
.footer-lotus {
    width: 54px; height: 36px;
    margin: 0 auto 1.6rem;
    background: var(--marigold);
    -webkit-mask: var(--lotus) center / contain no-repeat;
    mask: var(--lotus) center / contain no-repeat;
}
.footer-glories p {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 500;
    color: var(--paper);
    line-height: 1.4;
}
.footer-glories p + p { color: var(--gold-2); }
.footer-mantra {
    margin: 2rem auto 0;
    max-width: 36rem;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(246, 238, 221, .6);
}
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    margin-top: 2.5rem;
}
.footer-nav a {
    font-family: var(--font-ui);
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(246, 238, 221, .65);
}
.footer-nav a:hover { color: var(--marigold); }
.footer-fine {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(214, 162, 74, .15);
    font-family: var(--font-ui);
    font-size: .8rem;
    letter-spacing: .04em;
    color: rgba(246, 238, 221, .42);
}

/* ---------- Shared states ---------- */
.spinner {
    width: 34px; height: 34px;
    border: 2px solid var(--paper-3);
    border-top-color: var(--kumkum);
    border-radius: 50%;
    animation: spin .9s linear infinite;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes portraitIn { from { opacity: 0; transform: translateY(30px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(68, 101, 58, .5); } 80%, 100% { box-shadow: 0 0 0 10px rgba(68, 101, 58, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nameScroll { to { transform: translateX(-50%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Between tablet and wide desktop the side columns are narrow, so the flanking garlands slim down */
@media (min-width: 961px) and (max-width: 1180px) {
    .hero { --pw: clamp(210px, 20vw, 250px); --pillar: clamp(30px, 3.4vw, 38px); --pgap: 22px; padding-top: calc(var(--valance-h) + 6.2rem); }
    .hero-grid { gap: 0 1.4rem; }
    .hero-side { padding-left: .9rem; }
    .hero-heading { padding-right: .6rem; }
    .hero-stat { padding: 0 .75rem; }
    .hero-stat span { letter-spacing: .08em; font-size: .7rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero { --pw: min(56vw, 300px); --pgap: 8px; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .hero-stage { order: -1; padding: 0; margin-bottom: 1.1rem; }
    .hero-heading { text-align: center; margin-top: .4rem; }
    .hero-title .t-big { font-size: clamp(3.6rem, 16vw, 5.4rem); }
    .hero-title .t-big > span { display: inline; }
    .hero-side { text-align: center; margin-top: 1.3rem; }
    .hero-lede { margin-left: auto; margin-right: auto; }
    .hero-actions { margin-left: auto; margin-right: auto; max-width: 22rem; }
    .hero-stats { justify-content: center; }
    .hero-note { margin-left: auto; margin-right: auto; }
    .hero-inscription { margin-top: 2rem; }
    .how-intro { position: static; }
    .steps { grid-template-columns: 1fr; max-width: 520px; }
    .step:nth-child(2) { margin-top: 0; }
}

@media (max-width: 560px) {
    :root { --header-h: 62px; }
    .hero { --valance-h: 16px; }
    .hero-stat { padding: 0 1rem; }
    .step { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 1rem; }
    .step-num { font-size: 3.4rem; }
    .year-card { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .name-track { animation: none; }
    .name-strip { overflow-x: auto; }
}
