/* ==========================================================================
   IARP — Indian Association for Radiation Protection
   styles.css — premium light theme, SRP/HPS-inspired structure
   Palette: #FFFFFF / #F8F9FA backgrounds, #1A1D20 text,
            #FFC107 / #FFB703 golden-yellow used SURGICALLY
   Type: Plus Jakarta Sans (headers) + Inter (body)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
	--primary: #0056b3;
    --bg-white: #FFFFFF;
    --bg-soft: #F8F9FA;
    --ink: #1A1D20;
    --ink-soft: #4A4D50;
    --accent: #FFC107;          /* surgical golden yellow */
    --accent-soft-bg: #FFB703;  /* secondary warm yellow   */
    --accent-tint: rgba(255, 193, 7, 0.14);  /* icon backdrops */
    --border-light: rgba(26, 29, 32, 0.08);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.07);
    --radius-card: 16px;
    --ease: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-head: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.text-primary { color:#0056b3;}

/* ---------- Base ---------- */
html { scroll-behavior: auto; } /* smooth-scroll handled by jQuery for control */

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--ink); } /* yellow selection */

h1, h2, h3, h4, .navbar-brand { font-family: var(--font-head); }

/* Accessible focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border-radius: 4px;
}


  /* ---- Page banner: full-bleed background image + dark veil ----
           Same pattern as the homepage hero (.hero-media / .hero-veil):
           an absolutely-positioned <img> fills the section, a gradient
           veil sits on top for text contrast, and the copy sits above
           both. Swap the <img src> in the markup for your own photo. */
        .page-banner {
            position: relative;
            padding: 150px 0 50px;
            overflow: hidden;
            color: #fff;
        }
        .page-banner .banner-media {
            position: absolute;
            inset: 0;
            z-index: 0;
        }
        .page-banner .banner-media img {
            width: 100%; height: 100%;
            object-fit: cover;
            object-position: center;
        }
        .page-banner .banner-veil {
            position: absolute;
            inset: 0;
            z-index: 1;
            background: linear-gradient(180deg, rgba(20,17,8,.72) 0%, rgba(20,17,8,.6) 45%, rgba(20,17,8,.78) 100%);
        }
        .page-banner .container-fluid { position: relative; z-index: 2; }
        .page-banner .breadcrumb-trail {
            font-family: 'Inter', sans-serif;
            font-size: .85rem;
            letter-spacing: .02em;
            color: rgba(255,255,255,.72);
            margin-bottom: 14px;
        }
        .page-banner .breadcrumb-trail a { color: rgba(255,255,255,.72); text-decoration: none; }
        .page-banner .breadcrumb-trail a:hover { color: #ffc400; }
        .page-banner h1 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 800;
            font-size: clamp(2.1rem, 4vw, 3.2rem);
            margin-bottom: 14px;
            color: #fff;
        }
        .page-banner p.lead-text {
            font-family: 'Inter', sans-serif;
            font-weight: 300;
            font-size: 1.05rem;
            max-width: 640px;
            color: rgba(255,255,255,.86);
        }
 
        /* ---- Timeline (history) ---- */
        .timeline { position: relative; padding-left: 32px; }
        .timeline::before {
            content: "";
            position: absolute; left: 6px; top: 6px; bottom: 6px;
            width: 2px; background: rgba(0,0,0,.08);
        }
        .timeline-item { position: relative; padding-bottom: 34px; }
        .timeline-item:last-child { padding-bottom: 0; }
        .timeline-item::before {
            content: "";
            position: absolute; left: -32px; top: 4px;
            width: 12px; height: 12px; border-radius: 50%;
            background: var(--accent, #ffc400);
            box-shadow: 0 0 0 4px rgba(255,196,0,.18);
        }
        .timeline-year {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: .95rem;
            color: var(--accent, #d99a00);
            display: block;
            margin-bottom: 4px;
        }
        .timeline-item h4 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 600;
            font-size: 1.05rem;
            margin-bottom: 4px;
        }
        .timeline-item p { font-family: 'Inter', sans-serif; font-size: .93rem; color: #605b4c; margin: 0; }
 
        /* ---- Executive Committee cards ---- */
        .ec-card {
            border-radius: 16px;
            border: 1px solid rgba(0,0,0,.06);
            background: #fff;
            padding: 26px 22px;
            height: 100%;
            transition: transform .25s ease, box-shadow .25s ease;
        }
        .ec-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.07); }
        .ec-avatar {
            width: 64px; height: 64px; border-radius: 50%;
            background: linear-gradient(135deg, #ffe27a, #ffc400);
            display: flex; align-items: center; justify-content: center;
            font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.2rem;
            color: #2b2506; margin-bottom: 16px;
        }
        .ec-card h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 1.02rem; margin-bottom: 2px; }
        .ec-role { font-family: 'Inter', sans-serif; font-size: .82rem; color: var(--accent, #d99a00); font-weight: 500; }
 
        /* ---- Objectives checklist ---- */
        .objective-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
        .objective-item:last-child { border-bottom: none; }
        .objective-icon {
            flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
            background: rgba(255,196,0,.14); color: #b17e00;
            display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
        }
        .objective-item h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 3px; }
        .objective-item p { font-family: 'Inter', sans-serif; font-size: .9rem; color: #605b4c; margin: 0; }
 
        /* ---- Affiliation badges ---- */
        .affil-badge {
            display: flex; align-items: center; gap: 12px;
            border: 1px solid rgba(0,0,0,.07);
            border-radius: 14px; padding: 16px 18px;
            background: #fff; height: 100%;
        }
        .affil-badge i { font-size: 1.4rem; color: var(--accent, #d99a00); }
        .affil-badge span { font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 500; }








/* ---------- Typography helpers ---------- */
.eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.section-text {
    font-size: 1.0625rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

.text-accent { color: var(--accent) !important; }

/* yellow marker highlight inside headings */
.highlight-yellow {
    position: relative;
    white-space: nowrap;
    z-index: 1;
}
.highlight-yellow::after {
    content: "";
    position: absolute;
    left: -0.15em; right: -0.15em; bottom: 0.08em;
    height: 0.38em;
    background: var(--accent);
    z-index: -1;
    border-radius: 3px;
}

/* ---------- Layout sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-soft); } /* crisp off-white alternate band */

/* ---------- Milky glass utility ---------- */
.milky-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-card);
}

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-head);
    font-weight: 700;
    border-radius: 50px;              /* pill shape */
    padding: 12px 32px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-accent {
    background: var(--accent);
    color: var(--ink);
    border: 1px solid var(--accent);
}
.btn-accent:hover, .btn-accent:focus {
    background: var(--accent-soft-bg);  /* seamless yellow -> warm yellow */
    border-color: var(--accent-soft-bg);
    color: var(--ink);
    transform: translateY(-2px);        /* elevation lift */
    box-shadow: 0 12px 24px rgba(255, 193, 7, 0.28);
}

.btn-outline-dark {
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
}
.btn-outline-dark:hover, .btn-outline-dark:focus {
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 22px; font-size: 0.875rem; }

/* ---------- Navbar ---------- */

/* ======================= TOP UTILITY BAR ======================= */
.iarp-topbar {
    z-index: 1031; /* one above default navbar z-index (1030) */
    background: #0056b3; /* swap for your brand blue if different */
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.iarp-topbar a {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.iarp-topbar a:hover {
    color: var(--accent-soft-bg); 
}
@media (max-width: 576px) {
    .iarp-topbar .container {
        flex-wrap: wrap;
        row-gap: 4px;
    }
}

 
/* ============================================================
   HERO — split layout: boxed image slider (left, arrows+dots
   overlaid bottom-right on image) + static Latest Updates rail
   (right). Images are static — no zoom/transition effects.
   ============================================================ */

/* =========================================
   FLYER SLIDE - SHOW COMPLETE IMAGE
   Keep two-column layout
   ========================================= */

.hero-slide-image-only {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 100%;
    height: auto;
    min-height: 0;
}

.hero-slide-image-only .hero-media {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
}

.hero-slide-image-only .hero-bg {
    position: relative;
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: none;

    object-fit: contain;
    object-position: center;

    margin: 0 auto;
}

.hero-banner-split {
    padding: 5px 0 2rem;
    background: var(--bg-white);
    overflow: visible;
}

.hero-split-grid {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

/* ---------- Shared: badge / title / sub (used inside slides) ---------- */
.hero-badge {
    display: inline-flex; align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.hero-badge i { color: var(--accent); }

.hero-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.1rem;
}

.hero-sub {
    font-size: 1rem;
    color: var(--ink-soft);
}

.hero-trust { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }

/* ---------- LEFT: boxed image slider column ---------- */
.hero-slider-col {
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hero-slider-col .hero-slider {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 0px;
    box-shadow: var(--shadow-hover);
}

/* inactive slides overlay/fade out; active slide defines box height */
.hero-slider-col .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0s linear 0.8s;
    pointer-events: none;
}
.hero-slider-col .hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    min-height: 460px;
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0s linear 0s;
    pointer-events: auto;
}

/* photo layer inside the box — static, no zoom/transition */
.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* soft white veil so text stays legible over the photo, light theme preserved */
.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0.92) 45%, 
            rgba(255,255,255,0.55) 68%, 
            rgba(255,255,255,0.1) 100%),
        linear-gradient(to top, 
            rgba(255,255,255,0.95) 0%, 
            rgba(255,255,255,0.4) 45%, 
            transparent 75%);
}

/* text overlay: bottom-left aligned inside the boxed image */
.hero-slider-col .hero-content {
    position: relative;
    z-index: 3;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}
.hero-slider-col .hero-copy { max-width: 100%; }
.hero-slider-col .hero-title { font-size: clamp(1.4rem, 1.9vw, 1.9rem); }
.hero-slider-col .hero-sub { max-width: 460px; }

/* ---------- Masked line-reveal headline animation (text only, unaffected) ---------- */
.hero-title .mask { display: block; overflow: hidden; }
.hero-title .line {
    display: block;
    transform: translateY(112%);
    transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-slide.is-active .line { transform: translateY(0); }
.hero-slide.is-active .mask:nth-of-type(2) .line { transition-delay: 0.12s; }
.hero-slide.is-active .mask:nth-of-type(3) .line { transition-delay: 0.24s; }

/* badge / sub / CTAs stage in after headline, replay per slide */
.hero-slide .hero-badge,
.hero-slide .hero-sub,
.hero-slide .hero-ctas { opacity: 0; }
.hero-slide.is-active .hero-badge { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.40s forwards; }
.hero-slide.is-active .hero-sub   { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards; }
.hero-slide.is-active .hero-ctas  { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.70s forwards; }
@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Controls overlay: arrows + dots, bottom-right on the image ---------- */
.hero-controls-overlay {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: var(--ease);
}
.hero-arrow:hover {
    background: var(--accent);
    color: var(--ink);
    transform: scale(1.08);
}

.hero-dots { display: flex; align-items: center; gap: 0.5rem; }
.hero-dot {
    width: 20px; height: 4px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    padding: 0;
    cursor: pointer;
    transition: var(--ease);
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.7); }
.hero-dot.active { width: 30px; background: var(--accent); }

 

/* ---------- RIGHT: static Latest Updates rail ---------- */
.hero-updates-panel {
    flex: 1 1 32%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: 20px;
    align-self: stretch;
}

.hero-updates-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}
.hero-updates-head i { color: var(--accent); font-size: 1.1rem; }

.hero-updates-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}
.hero-updates-list::-webkit-scrollbar { width: 4px; }
.hero-updates-list::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

.hero-update-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #ededed;
    padding: 10px 0;
    margin: 0;
}
.hero-updates-list li.last { border-bottom: none; }

.hero-update-date {
    flex: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-tint);
    border-radius: 8px;
    padding: 4px 8px;
    white-space: nowrap;
    margin-top: 2px;
}
.hero-update-link {
    font-size: 14px;
    line-height: 18px;
    color: var(--ink);
    text-decoration: none;
    transition: var(--ease);
}
.hero-update-link:hover { color: var(--ink); text-decoration: underline; }

.hero-updates-more {
    align-self: flex-start;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-light);
    transition: var(--ease);
}
.hero-updates-more:hover { gap: 0.65rem; color: var(--accent); }

/* ---------- Responsive stacking ---------- */
@media (max-width: 991.98px) {
    .hero-split-grid { flex-direction: column; }
    .hero-updates-panel { max-width: 100%; }
    .hero-slider-col .hero-slider,
    .hero-slider-col .hero-slide.is-active { min-height: 0px; }
    .hero-slider-col .hero-content { min-height: 0px; padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .hero-slider-col .hero-slider,
    .hero-slider-col .hero-slide.is-active { min-height: 0px; }
    .hero-slider-col .hero-content { min-height: 0px; padding: 1rem; }
    .hero-controls-overlay {
        right: 0.85rem;
        bottom: 0.85rem;
        gap: 0.5rem;
        padding: 0.4rem;
    }
    .hero-arrow { width: 34px; height: 34px; }
    .hero-dot { width: 16px; }
    .hero-dot.active { width: 24px; }
}

/* ======================= MAIN NAVBAR ======================= */
.iarp-navbar {
    z-index: 1030;
    padding: 20px 0;
    background: transparent;
    margin-top: 30px; /* height of .iarp-topbar — measure in devtools and adjust */
    transition: padding 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                background-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 1px solid transparent;
}

/* scrolled state — applied by jQuery past 40px: milky blur + fine border */
.iarp-navbar.navbar-scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

/* ======================= BRAND ======================= */
.brand-tile {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: var(--ink);
    border-radius: 12px;
    font-size: 1.25rem;
    flex: none;
    transition: var(--ease);
}
.navbar-brand:hover .brand-tile { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.02em; color: var(--ink); }
.brand-text small { font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.brand-text-light strong { color: #fff; }
.brand-text-light small { color: rgba(255, 255, 255, 0.6); }

/* ======================= NAV LINKS ======================= */
.iarp-navbar .nav-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink);
    padding: 8px 14px !important;
    border-radius: 50px;
    white-space: nowrap;               /* never wrap a menu label */
    transition: var(--ease);
}
/* hover + active nav highlight = surgical yellow */
.iarp-navbar .nav-link:hover { color: var(--ink); background: var(--accent-tint); }
.iarp-navbar .nav-link.active { background: var(--accent); color: var(--ink); }

/* ======================= TOGGLER ======================= */
.navbar-toggler { border: 1px solid var(--border-light); border-radius: 10px; padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--accent-tint); }

/* ---------- Hero (subtle dot-grid pattern, no image overlay) ---------- */
.hero {
    position: relative;
    padding: 8.5rem 0 10px 0;
    background: var(--bg-white);
    overflow: hidden;
} 

/* the clean graphic pattern: a fine dot grid that fades downward */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26, 29, 32, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 30%, transparent 92%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 30%, transparent 92%);
    z-index: 0;
    pointer-events: none;
}

/* one soft warm glow — never a dark gradient */
.hero-blob {
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.16);
    filter: blur(110px);
    top: -160px; right: -120px;
    z-index: 0;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex; align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}
.hero-badge i { color: var(--accent); }

.hero-title {
    font-size: clamp(2.75rem, 5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--ink-soft);
    max-width: 460px;
}

.hero-trust { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }

/* floating milky-glass quick cards on hero right */
.hero-cards { display: flex; flex-direction: column; gap: 1.25rem; }

.hero-mini-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.35rem 1.5rem;
    text-decoration: none;
    color: var(--ink);
    transition: var(--ease);
}
.hero-mini-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: var(--ink); }
.hero-mini-offset { margin-left: 2.5rem; } /* layered asymmetry */

.hero-mini-icon {
    width: 52px; height: 52px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-tint);
    color: var(--accent);
    border-radius: 14px;
    font-size: 1.35rem;
    transition: var(--ease);
}
.hero-mini-card:hover .hero-mini-icon { background: var(--accent); color: var(--ink); }

.hero-mini-body { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.hero-mini-body small { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.hero-mini-body strong { font-family: var(--font-head); font-size: 1.05rem; }

.hero-mini-arrow { color: var(--accent); transition: var(--ease); }
.hero-mini-card:hover .hero-mini-arrow { transform: translateX(4px); }

/* ---------- Hero slider (jQuery crossfade) ---------- */
.hero-slider { position: relative; }

/* Inactive slides are lifted out of flow so the container
   always sizes itself to the ACTIVE slide — no layout jump. */
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0s linear 0.6s; /* hide only after fade-out */
    pointer-events: none;
}
.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0s linear 0s;
    pointer-events: auto;
}

/* controls: arrows + pill dots + slide counter */
.hero-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.25rem;
}
.hero-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease);
}
.hero-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.25);
}

/* pill dots: active dot stretches + turns yellow */
.hero-dots { display: flex; gap: 0.5rem; }
.hero-dot {
    width: 24px; height: 4px;
    border-radius: 50px;
    border: none;
    background: #E9ECEF;
    padding: 0;
    cursor: pointer;
    transition: var(--ease);
}
.hero-dot:hover { background: var(--accent-tint); }
.hero-dot.active { width: 38px; background: var(--accent); }

.hero-counter {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    margin-left: auto;
}
.hero-counter span { color: var(--ink); }

/* right visual: crossfading images with a slow Ken Burns zoom */
.hero-visual { position: relative; }
.hero-visual-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3.6;
    box-shadow: var(--shadow-hover);
}
.hero-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 6.5s linear; /* zoom continues while visible */
}
.hero-visual-img.is-active { opacity: 1; transform: scale(1.08); }

/* floating glass event card overlapping the visual */
.hero-mini-float {
    position: absolute;
    left: -2.5rem;
    bottom: 1.75rem;
    max-width: 300px;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .hero-mini-float { left: 1rem; bottom: 1rem; max-width: 270px; }
    .hero-controls { margin-top: 1.75rem; }
}

/* ---------- Signature motion: masked line reveal + staged rise ---------- */
/* each headline line sits inside an overflow-hidden mask and rises up */
.hero-title .mask { display: block; overflow: hidden; }
.hero-title .line {
    display: block;
    transform: translateY(112%);
    transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-slide.is-active .line { transform: translateY(0); }
/* stagger the lines: later lines rise a beat after earlier ones */
.hero-slide.is-active .mask:nth-of-type(2) .line { transition-delay: 0.12s; }
.hero-slide.is-active .mask:nth-of-type(3) .line { transition-delay: 0.24s; }

/* badge / sub / CTAs stage in after the headline, and replay per slide */
.hero-slide .hero-badge,
.hero-slide .hero-sub,
.hero-slide .hero-ctas { opacity: 0; }
.hero-slide.is-active .hero-badge { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.40s forwards; }
.hero-slide.is-active .hero-sub   { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards; }
.hero-slide.is-active .hero-ctas  { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.70s forwards; }
@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Full-width hero banner slider ---------- */
.hero-banner { padding: 0; min-height: 0; overflow: hidden; }

/* active slide stays in flow (defines banner height); others overlay */
.hero-banner .hero-slider { position: relative; }
.hero-banner .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0s linear 0.8s;
    pointer-events: none;
}
.hero-banner .hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0s linear 0s;
    pointer-events: auto;
}

/* full-bleed photo layer (parallax drifts the wrapper; img Ken Burns) */
.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    will-change: transform;
    z-index: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 7s linear;      /* slow push-in while active */
}
.hero-slide.is-active .hero-bg { transform: scale(1.09); }

/* soft white veil: keeps the light theme AND text legible — no dark overlays */
.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 38%, rgba(255,255,255,0.3) 62%, rgba(255,255,255,0.06) 100%),
        linear-gradient(to top, rgba(255,255,255,0.85) 0%, transparent 32%);
}

/* banner copy: vertically centered, left-aligned, editorial max-width */
.hero-content {
    position: relative;
    z-index: 3;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 7.5rem;
    padding-bottom: 10rem;   /* leaves room for the pinned controls bar */
}
.hero-copy { max-width: 720px; }
.hero-banner .hero-title { font-size: clamp(2.6rem, 4.6vw, 3.9rem); }

/* controls + trust strip pinned to the banner's lower edge */
.hero-controls-bar {
    position: absolute;
    left: 0; right: 0; bottom: 2.25rem;
    z-index: 4;
}
.hero-controls-bar .hero-controls { margin-top: 0; }
/* counter sits beside the arrows instead of colliding with the float card */
.hero-controls-bar .hero-counter { margin-left: 1.5rem; }

/* floating event card re-anchored to the banner's lower right */
.hero-banner .hero-mini-float {
    left: auto;
    right: 3rem;
    bottom: 2.5rem;
    z-index: 5;
}

@media (max-width: 991.98px) {
    .hero-content { padding-top: 8rem; padding-bottom: 9rem; }
    .hero-banner .hero-mini-float { display: none; } /* event card lives in the Events section on small screens */
}

/* ---------- Navbar dropdowns (milky glass) ---------- */
.iarp-dropdown {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-hover);
    padding: 0.5rem;
    margin-top: 0.6rem;
    min-width: 245px;
}
.iarp-dropdown .dropdown-item {
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    padding: 0.55rem 0.9rem;
    transition: var(--ease);
}
.iarp-dropdown .dropdown-item i { color: var(--accent); }
.iarp-dropdown .dropdown-item:hover,
.iarp-dropdown .dropdown-item:focus {
    background: var(--accent-tint);
    color: var(--ink);
    transform: translateX(3px);   /* subtle slide on hover */
}
.iarp-dropdown .dropdown-divider { border-color: var(--border-light); margin: 0.35rem 0.5rem; }

/* caret rotates when the menu opens */
.dropdown-toggle::after { transition: transform 0.25s ease; }
.dropdown.show .dropdown-toggle::after { transform: rotate(180deg); }

/* ---------- Publications mega menu ---------- */
/* wide panel: featured journal cover (left) + grouped links (right) */
.mega-menu {
    min-width: 640px;
    padding: 1.1rem;
    left: auto;
    right: 0;                     /* right-aligned so it never overflows the viewport */
}
.mega-heading {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
    margin: 0.25rem 0 0.5rem 0.9rem;
}

/* the featured RPE journal "cover" — pure CSS, deliberate and on-brand */
.journal-cover {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: 1.4rem;
    text-decoration: none;
    color: var(--ink);
    transition: var(--ease);
}
.journal-cover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
}
.journal-cover-icon {
    width: 44px; height: 44px;
    background: var(--accent);
    color: var(--ink);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.journal-cover-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.3;
}
.journal-cover-sub { font-size: 0.78rem; color: var(--ink-soft); }
.journal-cover-cta {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--accent);
    align-self: flex-start;
}

/* ---------- Mobile dropdowns: accordion-style expand ---------- */
/* inside the collapsed hamburger panel, menus grow open with a
   max-height + fade transition instead of popping in instantly */
@media (max-width: 991.98px) {
    .iarp-navbar .dropdown-menu {
        display: block;
        position: static !important;   /* stacks inside the panel */
        float: none;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        transition: max-height 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
                    opacity 0.3s ease,
                    padding 0.3s ease;
    }
    .iarp-navbar .dropdown-menu.show {
        max-height: 640px;             /* generous room for the mega menu */
        opacity: 1;
        padding: 0.25rem 0 0.75rem 0.5rem;
    }
    .mega-menu { min-width: 0; }       /* full width inside the panel */
    .journal-cover { margin-bottom: 1rem; }
}

/* banner slider allows vertical page scroll but owns horizontal swipes */
.hero-banner { touch-action: pan-y; }

/* ---------- Editorial marquee (slow, continuous, pure CSS) ---------- */
.marquee-band {       /* editorial tilt */
    width: 104%;
    margin-left: -2%;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    padding: 1.15rem 0;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    color: var(--ink);
}
/* outlined twin words give the ticker its editorial rhythm */
.marquee-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(26, 29, 32, 0.45);
}
.marquee-star { color: var(--accent); font-size: 1.05rem; flex: none; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ---------- Numbered manifesto chapters ---------- */
.chapter {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    margin-bottom: 0.9rem;
}
.chapter-center { justify-content: center; }
.chapter-no {
    font-family: var(--font-head);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    color: transparent;                          /* ghost numeral */
    -webkit-text-stroke: 1.5px rgba(26, 29, 32, 0.25);
}

/* ---------- Film-grain overlay (barely-there texture, fixed) ---------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Deliberate photo treatment: offset frame + spotlight ---------- */
/* thin yellow outline offset behind the clipped image frame */
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 1.5rem -1.25rem -1.25rem 1.5rem;
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 26px;
    z-index: 0;
}
.hero-visual-frame { z-index: 1; will-change: transform; } /* parallax target */
/* spotlight wash from the top-left corner of the photo */
.hero-visual-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 25% 15%, rgba(255, 255, 255, 0.22), transparent 55%);
    pointer-events: none;
    z-index: 2;
}

/* ---------- Quick navigation grid (pillar cards) ---------- */
.pillar-card {
    display: block;
    height: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: var(--ink);
    transition: var(--ease);
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: var(--ink); }

.pillar-icon {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-tint);
    color: var(--accent);
    border-radius: 16px;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: var(--ease);
}
.pillar-card:hover .pillar-icon { background: var(--accent); color: var(--ink); transform: scale(1.06); }

.pillar-card h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.pillar-card p { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 1.25rem; }

.pillar-link {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
    transition: var(--ease);
}
.pillar-card:hover .pillar-link { color: var(--accent); }

/* ---------- Stats / milestone counters ---------- */
.counter-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    text-align: center;
    padding: 2.5rem 1rem;
    transition: var(--ease);
}
.counter-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.counter-number {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    display: block;
    color: var(--ink);
    transition: var(--ease);
}
.counter-card:hover .counter-number { color: var(--accent); }

.counter-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

/* ---------- News & Events: tab switcher ---------- */
.feed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 2.5rem;
}
.feed-tab {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--bg-soft);
    border: 1px solid #E9ECEF;
    border-radius: 50px;
    padding: 9px 24px;
    cursor: pointer;
    transition: var(--ease);
}
.feed-tab:hover { border-color: var(--accent); background: var(--accent-tint); }
.feed-tab.active { background: var(--accent); border-color: var(--accent); } /* active = yellow */

/* feed column heading + behaviour */
.feed-heading {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 1.25rem;
}
.feed-heading i { color: var(--accent); }
.feed-column { transition: var(--ease); } /* jQuery fades the row, columns reflow */

/* LEFT column: news items with timestamp tags */
.news-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.1rem;
    transition: var(--ease);
}
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }

/* category pill (neutral) + timestamp tag (yellow clock icon) */
.cat-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: var(--bg-soft);
    border: 1px solid #E9ECEF;
    color: var(--ink-soft);
    border-radius: 50px;
    padding: 3px 12px;
}
.time-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--accent-tint);
    border-radius: 50px;
    padding: 3px 12px;
}
.time-tag i { color: var(--accent); }

.news-item h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.3rem; }
.news-item p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.55rem; }

.feed-link {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
    transition: var(--ease);
}
.feed-link:hover { color: var(--accent); }

/* RIGHT column: event rows with stylized yellow date badges */
.event-item {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.1rem;
    transition: var(--ease);
}
.event-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* the yellow date-badge block */
.date-badge {
    flex: none;
    width: 78px;
    align-self: flex-start;
    text-align: center;
    background: var(--accent);
    color: var(--ink);
    border-radius: 14px;
    padding: 0.85rem 0.4rem;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.25);
    transition: var(--ease);
}
.event-item:hover .date-badge { background: var(--accent-soft-bg); transform: scale(1.04); }
.date-badge strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; display: block; line-height: 1.1; }
.date-badge span { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* smaller badge variant for the hero mini card */
.date-badge-sm { width: 66px; padding: 0.7rem 0.3rem; box-shadow: none; }
.date-badge-sm strong { font-size: 1.05rem; }

.event-body h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.25rem; }
.event-loc { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.event-loc i { color: var(--accent); }

/* ---------- Interactive tool zone ---------- */
.tool-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--ease);
}
.tool-card:hover { box-shadow: var(--shadow-hover); }

.tool-form { padding: 2.75rem; }
.tool-heading { font-size: 1.05rem; font-weight: 800; margin-bottom: 1.5rem; }
.tool-heading i { color: var(--accent); }

/* form controls: rounded, yellow focus ring */
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--ink-soft); }
.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: var(--ease);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.18);
}

/* result panel: soft off-white with a surgical yellow top edge */
.tool-result {
    background: var(--bg-soft);
    border-top: 3px solid var(--accent);
    padding: 2.75rem;
}
@media (min-width: 992px) {
    .tool-result { border-top: none; border-left: 3px solid var(--accent); }
}

.result-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
}
.result-activity {
    font-family: var(--font-head);
    font-size: clamp(2.25rem, 3.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 0.25rem;
    word-break: break-word;
}

/* animated decay progress bar (width driven by jQuery) */
.decay-track {
    height: 10px;
    background: #E9ECEF;
    border-radius: 50px;
    overflow: hidden;
}
.decay-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 50px;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.result-stats { display: flex; gap: 2.5rem; margin-top: 1.75rem; }
.result-stat { display: flex; flex-direction: column; }
.result-stat-value { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.result-stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }

.result-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1.5rem; margin-bottom: 0; }

/* ---------- Membership CTA band ---------- */
.cta-band {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--accent);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 3.5rem 3rem;
}

/* ---------- Footer (solid charcoal — never a dark gradient) ---------- */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    padding: 4.5rem 0 2rem;
}
.footer-text { font-size: 0.9rem; max-width: 420px; }
.footer-heading {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fff;
    margin-bottom: 1.1rem;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.footer-links i { color: var(--accent); }
.footer-addr { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }
.footer-divider { border-color: rgba(255, 255, 255, 0.12); margin: 2.5rem 0 1.5rem; }
.footer-bottom { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 1.75rem; bottom: 1.75rem;
    width: 50px; height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    font-size: 1.15rem;
    box-shadow: 0 12px 24px rgba(255, 193, 7, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--ease);
    z-index: 1030;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-soft-bg); transform: translateY(-3px); }

/* ---------- Scroll reveal (jQuery toggles .revealed) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Responsive polish ---------- */
@media (max-width: 991.98px) {
    .section { padding: 4.5rem 0; }
    .hero { padding: 9rem 0 5rem; }
    .hero-mini-offset { margin-left: 0; }
    .iarp-navbar .navbar-collapse {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-soft);
        padding: 1rem;
        margin-top: 0.75rem;
    }
    .cta-band { padding: 2.5rem 1.75rem; }
    .tool-form, .tool-result { padding: 2rem 1.5rem; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 2.35rem; }
    .brand-text small { display: none; }
    .event-item { flex-direction: column; }
    .result-stats { gap: 1.5rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}
