    :root {
        --ink: #14263f;          /* deep ink-navy */
        --ink-2: #1e3555;        /* lighter navy */
        --parchment: #f6f1e7;    /* warm paper */
        --parchment-2: #efe7d6;
        --brass: #b3893f;        /* brass / gold accent */
        --brass-deep: #8a6522;
        --oxblood: #7a2e2e;      /* deep red for emphasis */
        --text: #2a2a28;
        --muted: #5f5b52;
        --line: #d9cfb8;
        --white: #ffffff;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
        font-family: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif;
        line-height: 1.75;
        color: var(--text);
        background: var(--parchment);
        -webkit-font-smoothing: antialiased;
    }

    h1, h2, h3, h4 {
        font-family: 'Noto Serif Bengali', 'Playfair Display', Georgia, serif;
        line-height: 1.3;
        color: var(--ink);
        font-weight: 700;
    }

    a { color: inherit; text-decoration: none; }

    .wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

    .eyebrow {
        font-family: 'Inter', sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.22em;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--brass-deep);
        display: inline-block;
        margin-bottom: 0.9rem;
    }

    /* ---------- Header ---------- */
    header {
        position: fixed;
        top: 0; left: 0; width: 100%;
        z-index: 1000;
        background: rgba(20, 38, 63, 0.0);
        transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
        padding: 1.1rem 0;
    }
    header.scrolled {
        background: var(--ink);
        box-shadow: 0 6px 24px rgba(0,0,0,0.18);
        padding: 0.7rem 0;
    }
    .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
    .brand { display: flex; align-items: center; gap: 0.8rem; color: var(--white); }
    .brand .mark {
        width: 44px; height: 44px; flex: none;
        border: 2px solid var(--brass);
        border-radius: 50%;
        display: grid; place-items: center;
        font-family: 'Playfair Display', serif;
        font-weight: 800; font-size: 1.1rem;
        color: var(--brass);
        letter-spacing: 0.02em;
    }
    .brand .brand-txt strong {
        font-family: 'Playfair Display', serif;
        font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em;
        display: block; line-height: 1.1;
    }
    .brand .brand-txt span {
        font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
        color: var(--brass); font-family: 'Inter', sans-serif;
    }
    nav.menu ul { display: flex; list-style: none; gap: 1rem; align-items: center; }
    nav.menu a {
        color: rgba(255,255,255,0.88);
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem; font-weight: 500;
        padding-bottom: 3px;
        border-bottom: 2px solid transparent;
        transition: color 0.25s, border-color 0.25s;
    }
    nav.menu a:hover { color: var(--white); border-color: var(--brass); }
    .btn {
        display: inline-block;
        font-family: 'Inter', sans-serif;
        font-weight: 600; font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
        border-radius: 2px;
        cursor: pointer;
        transition: transform 0.2s, background 0.25s, color 0.25s, box-shadow 0.25s;
        border: 1.5px solid var(--brass);
    }
    .btn-solid { background: var(--brass); color: var(--ink); }
    .btn-solid:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: var(--white); transform: translateY(-2px); }
    .btn-outline { background: transparent; color: var(--white); }
    .btn-outline:hover { background: var(--brass); color: var(--ink); transform: translateY(-2px); }
    .btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
    .btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); transform: translateY(-2px); }

    .menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

    /* ---------- Hero ---------- */
    .hero {
        position: relative;
        min-height: 100vh;
        display: flex;
        align-items: center;
        color: var(--white);
        background:
            linear-gradient(180deg, rgba(15,28,48,0.86), rgba(15,28,48,0.94)),
            radial-gradient(circle at 20% 30%, rgba(179,137,63,0.22), transparent 45%),
            var(--ink);
        overflow: hidden;
    }
    .hero::after {
        content: "";
        position: absolute; inset: 0;
        background-image:
            repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 40px),
            repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 40px);
        pointer-events: none;
    }
    .hero-inner { position: relative; z-index: 2; max-width: 860px; padding: 8rem 0 5rem; }
    .hero .eyebrow { color: var(--brass); }
    .hero h1 {
        color: var(--white);
        font-size: clamp(2.1rem, 5vw, 3.6rem);
        line-height: 1.22;
        margin-bottom: 1.3rem;
    }
    .hero h1 .accent { color: var(--brass); }
    .hero .sub {
        font-size: clamp(1rem, 2vw, 1.2rem);
        color: rgba(255,255,255,0.82);
        max-width: 680px;
        margin-bottom: 2.2rem;
    }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
    .hero-motto {
        margin-top: 3rem;
        display: flex; flex-wrap: wrap; gap: 1.4rem;
        font-family: 'Inter', sans-serif;
        font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
        color: rgba(255,255,255,0.6);
    }
    .hero-motto span { position: relative; padding-left: 1.2rem; }
    .hero-motto span::before {
        content: ""; position: absolute; left: 0; top: 50%;
        width: 6px; height: 6px; background: var(--brass); transform: translateY(-50%) rotate(45deg);
    }

    /* ---------- Section base ---------- */
    section { padding: 6rem 0; }
    .section-head { max-width: 720px; margin-bottom: 3.2rem; }
    .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
    .section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 0.8rem; }
    .section-head-inline { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 1.3rem; }
    .section-head p { color: var(--muted); font-size: 1.05rem; }
    .lead { font-size: 1.15rem; color: var(--text); }

    .bg-paper2 { background: var(--parchment-2); }
    .bg-ink { background: var(--ink); color: rgba(255,255,255,0.85); }
    .bg-ink h2, .bg-ink h3 { color: var(--white); }
    .bg-ink .section-head p { color: rgba(255,255,255,0.7); }
    .bg-ink .eyebrow { color: var(--brass); }

    /* ---------- About ---------- */
    .about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: start; }
    .about-grid p { margin-bottom: 1.2rem; color: var(--muted); }
    .about-grid p:first-child { color: var(--text); font-size: 1.12rem; }
    .about-aside {
        background: var(--white);
        border: 1px solid var(--line);
        border-top: 4px solid var(--brass);
        padding: 2rem;
        border-radius: 3px;
        box-shadow: 0 18px 40px rgba(20,38,63,0.06);
    }
    .about-aside h3 { font-size: 1.2rem; margin-bottom: 1rem; }
    .fact { display: flex; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); }
    .fact:last-child { border-bottom: none; }
    .fact .k { font-family: 'Inter', sans-serif; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-deep); min-width: 92px; padding-top: 3px; }
    .fact .v { font-weight: 500; color: var(--ink); }

    /* ---------- Inspiration timeline (SIGNATURE) ---------- */
    .timeline { position: relative; margin-top: 3.5rem; }
    .timeline::before {
        content: ""; position: absolute; top: 46px; left: 0; right: 0; height: 2px;
        background: linear-gradient(90deg, transparent, var(--brass) 12%, var(--brass) 88%, transparent);
    }
    .timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
    .tl-item { position: relative; padding-top: 92px; text-align: center; }
    .tl-year {
        position: absolute; top: 0; left: 50%; transform: translateX(-50%);
        font-family: 'Playfair Display', serif;
        background: var(--ink); color: var(--brass);
        border: 2px solid var(--brass);
        width: 94px; height: 94px; border-radius: 50%;
        display: grid; place-items: center;
        font-size: 1.35rem; font-weight: 800;
        box-shadow: 0 0 0 8px var(--parchment);
    }
    .bg-ink .tl-year { box-shadow: 0 0 0 8px var(--ink); }
    .tl-item h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
    .tl-item .tl-tag { font-family:'Inter',sans-serif; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); display:block; margin-bottom: 0.5rem; }
    .tl-item p { color: rgba(255,255,255,0.72); font-size: 0.98rem; }

    /* ---------- Vision / Mission ---------- */
    .vm-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
    .vision-card {
        background: var(--ink); color: var(--white);
        padding: 2.6rem; border-radius: 3px; position: relative;
        border-left: 4px solid var(--brass);
    }
    .vision-card .eyebrow { color: var(--brass); }
    .vision-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 1rem; }
    .vision-card p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
    .mission-list { list-style: none; counter-reset: m; }
    .mission-list li {
        counter-increment: m;
        position: relative; padding: 1.1rem 0 1.1rem 3.4rem;
        border-bottom: 1px solid var(--line);
        color: var(--text);
    }
    .mission-list li:last-child { border-bottom: none; }
    .mission-list li::before {
        content: counter(m, decimal);
        position: absolute; left: 0; top: 1rem;
        font-family: 'Playfair Display', serif; font-weight: 700;
        color: var(--brass-deep);
        width: 2.3rem; height: 2.3rem; border: 1.5px solid var(--brass);
        border-radius: 50%; display: grid; place-items: center; font-size: 0.95rem;
    }

    /* ---------- Pillars ---------- */
    .pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem; }
    .pillar {
        background: var(--white); border: 1px solid var(--line);
        border-radius: 3px; padding: 2rem 1.6rem;
        transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
        position: relative; overflow: hidden;
    }
    .pillar::before {
        content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
        background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
    }
    .pillar:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20,38,63,0.1); border-color: var(--brass); }
    .pillar:hover::before { transform: scaleX(1); }
    .pillar .num { font-family:'Playfair Display',serif; font-size: 0.85rem; color: var(--brass-deep); letter-spacing: 0.1em; }
    .pillar h3 { font-size: 1.2rem; margin: 0.6rem 0 0.6rem; }
    .pillar p { color: var(--muted); font-size: 0.95rem; }

    /* ---------- What We Do ---------- */
    .work-item {
        display: grid; grid-template-columns: 80px 1fr; gap: 1.8rem;
        padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start;
    }
    .work-item:last-child { border-bottom: none; }
    .work-num { font-family:'Playfair Display',serif; font-size: 2.4rem; font-weight: 800; color: var(--brass); line-height: 1; }
    .work-item h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
    .work-item p { color: var(--muted); }

    /* ---------- Founding Declaration / Call ---------- */
    .call { position: relative; text-align: center; }
    .call .wrap { max-width: 860px; }
    .call .quote-mark { font-family:'Playfair Display',serif; font-size: 5rem; color: var(--brass); line-height: 0.5; opacity: 0.6; }
    .call h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1.6rem; color: var(--white); }
    .call p { font-size: 1.18rem; color: rgba(255,255,255,0.86); margin-bottom: 1.4rem; }
    .call .btn { margin-top: 1rem; }

    /* ---------- Leadership ---------- */
    .lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
    .lead-card {
        background: var(--white); border: 1px solid var(--line); border-radius: 3px;
        padding: 2rem; text-align: center;
    }
    .lead-card .avatar {
        width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%;
        background: var(--ink); color: var(--brass); display: grid; place-items: center;
        font-family:'Playfair Display',serif; font-size: 1.5rem; font-weight: 700; border: 2px solid var(--brass);
    }
    .lead-card .role { font-family:'Inter',sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-deep); margin: 0.5rem 0; }
    .lead-card h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
    .lead-card p { color: var(--muted); font-size: 0.9rem; }
    .lead-note { text-align: center; margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }

    /* ---------- Registration form (PRESERVED) ---------- */
    .register-wrapper { max-width: 720px; margin: 0 auto; }
    .register-intro {
        background: var(--white);
        border-left: 4px solid var(--brass);
        padding: 1.2rem 1.5rem;
        border-radius: 4px;
        margin-bottom: 2.5rem;
        color: var(--muted);
    }
    .registration-form {
        background: var(--white);
        padding: 2.5rem;
        border-radius: 4px;
        box-shadow: 0 18px 45px rgba(20,38,63,0.1);
        border: 1px solid var(--line);
    }
    .form-group { margin-bottom: 1.5rem; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .registration-form label {
        display: block; margin-bottom: 0.5rem;
        font-weight: 600; color: var(--ink);
        font-family: 'Inter', sans-serif; font-size: 0.9rem;
    }
    .req { color: var(--oxblood); }
    .registration-form input,
    .registration-form textarea {
        width: 100%; padding: 12px 14px;
        border: 1px solid var(--line); border-radius: 4px;
        font-family: inherit; font-size: 1rem; color: var(--text);
        background: var(--parchment);
        transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    }
    .registration-form input:focus,
    .registration-form textarea:focus {
        outline: none; border-color: var(--brass); background: var(--white);
        box-shadow: 0 0 0 3px rgba(179,137,63,0.18);
    }
    .registration-form textarea { resize: vertical; }
    .field-hint { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.85rem; }
    .submit-btn {
        display: inline-block; background: var(--brass); color: var(--ink);
        padding: 14px 40px; border: none; border-radius: 3px;
        font-weight: 700; font-size: 1rem; cursor: pointer;
        font-family: 'Inter', sans-serif;
        transition: background 0.3s, color 0.3s, transform 0.2s;
    }
    .submit-btn:hover { background: var(--brass-deep); color: var(--white); transform: translateY(-2px); }
    .form-note { margin-top: 1rem; color: #2e7d4f; font-weight: 600; display: none; }

    /* ---------- Footer ---------- */
    footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 4rem 0 0; }
    .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
    footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 1.1rem; font-family:'Inter',sans-serif; letter-spacing: 0.04em; }
    footer .f-brand strong { font-family:'Playfair Display',serif; font-size: 1.3rem; color: var(--white); display:block; margin-bottom: 0.6rem; }
    footer ul { list-style: none; }
    footer ul li { margin-bottom: 0.6rem; }
    footer a { color: rgba(255,255,255,0.72); font-size: 0.95rem; transition: color 0.25s; }
    footer a:hover { color: var(--brass); }
    footer .contact-line { font-size: 0.92rem; margin-bottom: 0.5rem; }
    footer .contact-line b { color: var(--white); font-weight: 500; }
    .social { display: flex; gap: 0.7rem; margin-top: 1rem; }
    .social a {
        width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
        display: grid; place-items: center; font-size: 0.8rem; font-family:'Inter',sans-serif; letter-spacing: 0.02em;
        transition: background 0.25s, color 0.25s, border-color 0.25s;
    }
    .social a:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
    .footer-bottom {
        margin-top: 3.5rem; border-top: 1px solid rgba(255,255,255,0.12);
        padding: 1.5rem 0; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.55);
    }
    .footer-bottom .motto { color: var(--brass); font-style: italic; }

    /* ---------- Reveal animation ---------- */
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .reveal.in { opacity: 1; transform: none; }

    /* ---------- Responsive ---------- */
    @media (max-width: 900px) {
        .about-grid, .vm-grid { grid-template-columns: 1fr; gap: 2.2rem; }
        .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 760px) {
        nav.menu { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
            background: var(--ink); flex-direction: column; justify-content: center; padding: 2rem;
            transition: right 0.35s; box-shadow: -10px 0 40px rgba(0,0,0,0.3); }
        nav.menu.open { right: 0; }
        nav.menu ul { flex-direction: column; gap: 1.6rem; text-align: center; }
        .menu-toggle { display: block; z-index: 1100; }
        header .nav .btn.desktop-cta { display: none; }
        .timeline::before { display: none; }
        .timeline-grid { grid-template-columns: 1fr; gap: 3rem; }
        .form-row { grid-template-columns: 1fr; gap: 0; }
        .registration-form { padding: 1.6rem; }
        .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
        .work-item { grid-template-columns: 1fr; gap: 0.5rem; }
        .hero-inner { padding: 8rem 22px 5rem; }
        section { padding: 4rem 0; }
    }

    @media (prefers-reduced-motion: reduce) {
        * { scroll-behavior: auto !important; }
        .reveal { opacity: 1; transform: none; transition: none; }
    }

    /* ---------- Grouped dropdown nav ---------- */
    nav.menu li.has-dd { position: relative; }
    nav.menu .dd-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
    nav.menu .dd-caret { font-size: 0.6rem; transition: transform 0.25s; }
    nav.menu li.has-dd.open .dd-caret { transform: rotate(180deg); }
    nav.menu .dd-panel { list-style: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 250px; background: var(--ink); border: 1px solid rgba(255,255,255,0.14); border-top: 2px solid var(--brass); border-radius: 3px; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.1rem; opacity: 0; visibility: hidden; transition: opacity 0.22s, transform 0.22s; box-shadow: 0 24px 50px rgba(0,0,0,0.35); z-index: 200; }
    nav.menu li.has-dd:hover .dd-panel, nav.menu li.has-dd.open .dd-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    nav.menu .dd-panel li { margin: 0; }
    nav.menu .dd-panel a { display: block; padding: 0.6rem 0.9rem; border-radius: 2px; font-size: 0.86rem; color: rgba(255,255,255,0.82); border-bottom: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }
    nav.menu .dd-panel a:hover { background: rgba(179,137,63,0.16); color: var(--brass); border-color: transparent; }
    nav.menu .dd-panel a.active { color: var(--brass); }

    /* ---------- Sub-page head ---------- */
    .page-head { background: linear-gradient(180deg, rgba(15,28,48,0.9), rgba(15,28,48,0.96)), radial-gradient(circle at 25% 20%, rgba(179,137,63,0.2), transparent 45%), var(--ink); color: var(--white); padding: 9rem 0 3.5rem; position: relative; }
    .page-head::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 40px); pointer-events: none; }
    .page-head .wrap { position: relative; z-index: 2; }
    .page-head .eyebrow { color: var(--brass); }
    .page-head h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0.8rem; }
    .page-head h1 .accent { color: var(--brass); }
    .page-head p { color: rgba(255,255,255,0.8); max-width: 720px; font-size: 1.05rem; }
    .crumb { font-family:'Inter',sans-serif; font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); margin-bottom: 1.2rem; }
    .crumb a { color: var(--brass); }

    /* ---------- Leadership photos (home + committee) ---------- */
    .lead-card.has-photo { padding: 0; overflow: hidden; text-align: center; }
    .lead-photo { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--parchment-2); }
    .lead-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
    .lead-card.has-photo:hover .lead-photo img { transform: scale(1.05); }
    .lead-body { padding: 1.6rem; }

    /* ---------- Committee full list ---------- */
    .cmt-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 3rem; }
    .cmt-block { margin-bottom: 3rem; }
    .cmt-block h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
    .cmt-block .sub { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
    .cmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 0.9rem; }
    .cmt-item { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 3px; padding: 1rem 1.2rem; display: flex; gap: 0.9rem; align-items: baseline; }
    .cmt-item .n { font-family:'Playfair Display',serif; color: var(--brass-deep); font-weight: 700; font-size: 0.9rem; flex: none; min-width: 1.6rem; }
    .cmt-item .info h4 { font-size: 1rem; margin-bottom: 0.15rem; font-family:'Noto Serif Bengali',serif; }
    .cmt-item .info p { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

    /* ---------- Resource cards / lists ---------- */
    .res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.4rem; }
    .res-card { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 1.8rem; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
    .res-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,38,63,0.1); border-color: var(--brass); }
    .res-card .date { font-family:'Inter',sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-deep); }
    .res-card h3 { font-size: 1.18rem; margin: 0.5rem 0 0.6rem; }
    .res-card p { color: var(--muted); font-size: 0.94rem; }
    .res-card .tag { display: inline-block; margin-top: 1rem; font-family:'Inter',sans-serif; font-size: 0.72rem; color: var(--oxblood); border: 1px solid var(--line); border-radius: 2px; padding: 0.2rem 0.7rem; }
    .doc-list { display: grid; gap: 0.9rem; max-width: 880px; }
    .doc-item { display: flex; align-items: center; gap: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 1.2rem 1.5rem; transition: transform 0.22s, border-color 0.22s; }
    .doc-item:hover { transform: translateY(-4px); border-color: var(--brass); }
    .doc-item .ico { width: 46px; height: 46px; flex: none; border-radius: 3px; background: var(--ink); border: 1px solid var(--brass); color: var(--brass); display: grid; place-items: center; font-family:'Inter',sans-serif; font-weight: 700; font-size: 0.8rem; }
    .doc-item h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
    .doc-item p { color: var(--muted); font-size: 0.86rem; }
    .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; }
    .gal { position: relative; aspect-ratio: 4/3; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); background: var(--parchment-2); display: grid; place-items: center; transition: transform 0.25s, border-color 0.25s; }
    .gal:hover { transform: translateY(-4px); border-color: var(--brass); }
    .gal span { font-family:'Inter',sans-serif; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
    .gal img { width: 100%; height: 100%; object-fit: cover; }
    .empty-note { max-width: 760px; margin: 2.5rem 0 0; background: var(--white); border: 1px dashed var(--brass); border-radius: 3px; padding: 1.6rem 1.8rem; color: var(--muted); }
    .empty-note b { color: var(--brass-deep); }
    .prose { max-width: 820px; }
    .prose h2 { font-size: 1.5rem; margin: 2rem 0 0.8rem; }
    .prose p { color: var(--text); margin-bottom: 1rem; }
    .prose ul { margin: 0 0 1.2rem 1.3rem; color: var(--text); }
    .prose ul li { margin-bottom: 0.5rem; }
    .info-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 3px; padding: 1.6rem 1.8rem; margin-bottom: 1.2rem; }
    .info-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
    .info-card p { color: var(--muted); }

    @media (max-width: 900px) {
        .cmt-top { grid-template-columns: 1fr; }
    }
    @media (max-width: 760px) {
        nav.menu .dd-panel { position: static; transform: none; opacity: 1; visibility: visible; background: transparent; border: none; box-shadow: none; padding: 0.3rem 0 0.3rem 0.8rem; min-width: 0; display: none; }
        nav.menu li.has-dd.open .dd-panel { display: flex; transform: none; }
        nav.menu .dd-panel a { text-align: center; }
    }


/* =====================================================================
   Blade layer — styles the v1 static page did not need, plus fixes for
   pages that render under the fixed header (registration, success).
   ===================================================================== */

/* Anchor links land below the fixed header instead of under it. */
html { scroll-padding-top: 96px; }

/* Sub-pages have no dark hero, so the header can't stay transparent. */
body.page-solid header {
    background: var(--ink);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

/* v1's footer markup uses h4; without this the global heading colour
   (ink) would render dark-on-dark. */
footer h3, footer h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
}
footer p { font-size: 0.94rem; margin-bottom: 0.5rem; }
footer .foot-motto { color: var(--brass); font-style: italic; margin-top: 0.9rem; }

/* ---------- Shared page furniture ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 0.6rem; }
.section-title p { color: var(--muted); font-size: 1.05rem; }

.cta-button {
    display: inline-block;
    background: var(--brass);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border: 1.5px solid var(--brass);
    border-radius: 3px;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}
.cta-button:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: var(--white); transform: translateY(-2px); }

/* ---------- Registration / success pages ---------- */
.register-page {
    background: var(--parchment);
    padding: 9rem 0 6rem;
    min-height: 100vh;
}

.register-banner { max-width: 654px; margin: 0 auto 2.5rem; }
.register-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(20, 38, 63, 0.12);
}

.register-intro { white-space: pre-line; text-align: justify; }

.error-box {
    background: #fdecea;
    border-left: 4px solid var(--oxblood);
    color: #8c2b2b;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.error-box ul { margin: 0; padding-left: 1.2rem; }

.field-error { display: block; margin-top: 0.4rem; color: var(--oxblood); font-size: 0.85rem; }

.success-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--brass);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 18px 45px rgba(20, 38, 63, 0.1);
    text-align: center;
}
.success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--parchment-2);
    color: #2e7d4f;
    display: grid;
    place-items: center;
}
.success-card h2 { font-size: 2rem; margin-bottom: 1rem; }
.success-card p { color: var(--muted); margin-bottom: 2rem; }

/* ---------- Crop preview + modal ---------- */
.crop-preview-wrap { margin-top: 1rem; display: flex; align-items: center; gap: 1rem; }
.crop-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--brass);
}
.crop-change-btn {
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.crop-change-btn:hover { background: var(--ink); color: var(--white); }

.crop-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 28, 48, 0.78);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.crop-modal.open { display: flex; }
.crop-modal-dialog {
    background: var(--white);
    border-radius: 4px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.crop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
}
.crop-modal-header h3 { margin: 0; font-size: 1.2rem; }
.crop-close { background: transparent; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.crop-modal-body { padding: 1rem 1.5rem; overflow: auto; }
.crop-canvas-wrap { max-height: 60vh; }
/* Cropper.js needs the image block-level and width-bounded */
#crop-image { display: block; max-width: 100%; }
.crop-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--line);
}
.crop-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}
.crop-btn-light { background: var(--parchment-2); color: var(--text); }
.crop-btn-primary { background: var(--brass); color: var(--ink); }
.crop-btn-primary:hover { background: var(--brass-deep); color: var(--white); }

/* File inputs shouldn't inherit the text-input padding wholesale. */
.registration-form input[type="file"] { padding: 10px 12px; background: var(--white); }

@media (max-width: 760px) {
    .register-page { padding: 7rem 0 4rem; }
    .success-card { padding: 2rem 1.4rem; }
}

/* =====================================================================
   Brand logo, dropdown hover bridge, contact page.
   ===================================================================== */

/* ---------- Brand logo ---------- */
.brand-logo {
    display: block;
    height: 100%;
    width: auto;
    background: var(--white);
    padding: 6px 10px;
    border-radius: 3px;
    transition: height 0.35s;
}
header.scrolled .brand-logo { height: 100%; }
.footer-logo { display: block; height: 34px; width: auto; background: var(--white); padding: 6px 10px; border-radius: 3px; margin-bottom: 1.1rem; }

@media (max-width: 420px) {
    .brand-logo { height: 100%; padding: 5px 8px; }
}

/* Bridges the 12px gap between a nav item and its panel, so moving the
   pointer down doesn't close the dropdown mid-travel. */
nav.menu li.has-dd::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
}
@media (max-width: 760px) {
    nav.menu li.has-dd::after { display: none; }
}

/* ---------- Page head ---------- */
.page-head .eyebrow.center { display: inline-block; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
.info-col { display: grid; gap: 1.2rem; }

.info-card .ic {
    width: 42px;
    height: 42px;
    margin-bottom: 0.9rem;
    border: 1.5px solid var(--brass);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--brass-deep);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
}
.info-card a { color: var(--brass-deep); font-weight: 500; }
.info-card a:hover { color: var(--ink); }

.socials-row { display: flex; gap: 0.7rem; margin-top: 0.4rem; }
.socials-row a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--brass-deep);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.socials-row a:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }

.map-wrap {
    border: 1px solid var(--line);
    border-radius: 3px;
    overflow: hidden;
    height: 260px;
    background: var(--parchment-2);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(20, 38, 63, 0.1);
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--parchment);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brass);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(179, 137, 63, 0.18);
}
.contact-form textarea { resize: vertical; }
.contact-form .form-note { display: none; }
.contact-form .form-note.show { display: block; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 760px) {
    .contact-form { padding: 1.6rem; }
}

/* ---------- Committee group headings ---------- */
.cmt-block-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.cmt-block-title h3 { font-size: 1.4rem; flex: none; }
.cmt-block-title .count {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-deep);
    flex: none;
}
.cmt-block-title .line { flex: 1; height: 1px; background: var(--line); }

@media (max-width: 600px) {
    .cmt-block-title { flex-wrap: wrap; gap: 0.5rem; }
    .cmt-block-title .line { display: none; }
}

/* =====================================================================
   Gallery thumbnails + lightbox.
   ===================================================================== */

/* The tile is a <button> when it opens the lightbox — strip the UA chrome. */
.gal-btn {
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: zoom-in;
    display: block;
    width: 100%;
}
.gal-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 18, 32, 0.94);
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lb-close,
.lb-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lb-close:hover,
.lb-nav:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }

.lb-close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}
.lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-count {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Home page gallery strip ---------- */
.gal-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gal-strip .gal { aspect-ratio: 4 / 3; }
.gal-more { text-align: center; margin-top: 2.5rem; }

@media (max-width: 760px) {
    .gal-strip { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .lb-nav { width: 40px; height: 40px; font-size: 1.6rem; }
    .lb-prev { left: 0.4rem; }
    .lb-next { right: 0.4rem; }
}
