:root {
    color-scheme: light dark;
    --bg: #0f0c07;
    --bg-muted: #1c140c;
    --parchment: #f7f1e3;
    --parchment-deep: #e6dac3;
    --ink: #2b1e10;
    --ink-muted: #5c4630;
    --gold: #d8a850;
    --accent: #8cc4c9;
    --accent-deep: #3b6470;
    --magenta: #82204A;
    --shadow: 0 20px 60px rgba(15, 8, 2, 0.4);
    --radius: 18px;
    --page-padding: clamp(1.75rem, 6vw, 5rem);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-dark: rgba(43, 30, 16, 0.15);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: radial-gradient(circle at top, #2a1b0f, var(--bg));
    color: var(--parchment);
    min-height: 100vh;
    font-family: 'Cormorant Garamond', 'Inter', serif;
    font-size: clamp(1.05rem, 1.2vw, 1.3rem);
    line-height: 1.75;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.accordion__trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

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

ul {
    padding-left: 1.25rem;
}

.site-header {
    padding: 1.5rem var(--page-padding) 3rem;
    background: linear-gradient(160deg, rgba(16, 9, 2, 0.95), rgba(34, 21, 10, 0.85));
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,%3Csvg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M60 5 L70 30 L95 35 L75 55 L80 80 L60 67 L40 80 L45 55 L25 35 L50 30 Z" fill="none" stroke="%23d8a850" stroke-width="0.5" opacity="0.08"/%3E%3C/svg%3E');
    opacity: 0.5;
    mix-blend-mode: screen;
    pointer-events: none;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    /* place nav above hero on small screens */
    z-index: 6;
}

.brand {
    display: flex;
    flex-direction: column;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.brand__eyebrow {
    font-size: 0.7rem;
    color: var(--accent);
}

.brand__name {
    font-size: 1.1rem;
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.nav__links a {
    position: relative;
    padding-bottom: 0.2rem;
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav__links a:focus-visible,
.nav__links a:hover {
    color: var(--gold);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: transparent;
    /* remove the visible button border so only the three bars show */
    border: none;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    position: relative;
    z-index: 7;
}

.nav-toggle__bar {
    width: 22px;
    height: 2px;
    background: var(--parchment);
    display: block;
    position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--parchment);
}

.nav-toggle__bar::before {
    top: -6px;
}

.nav-toggle__bar::after {
    top: 6px;
}

/* animate hamburger -> X */
.nav-toggle {
    /* keep alignment rules but don't force `display` here —
       display is controlled in the mobile media query so the
       hamburger remains hidden on desktop */
    align-items: center;
    justify-content: center;
}

.nav-toggle .nav-toggle__bar,
.nav-toggle .nav-toggle__bar::before,
.nav-toggle .nav-toggle__bar::after {
    transition: transform 260ms cubic-bezier(.2,.9,.3,1),
                opacity 200ms ease, background-color 200ms ease;
    transform-origin: center;
}

/* when open, hide center bar and rotate pseudo bars into a true X */
.nav-toggle.is-open .nav-toggle__bar {
    background: transparent;
}

.nav-toggle__bar::before {
    top: -6px;
}

.nav-toggle__bar::after {
    top: 6px;
}

.nav-toggle.is-open .nav-toggle__bar::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar::after {
    top: 0;
    transform: rotate(-45deg);
}

/* small visual press */
.nav-toggle:active .nav-toggle__bar,
.nav-toggle:active .nav-toggle__bar::before,
.nav-toggle:active .nav-toggle__bar::after {
    transform: scale(0.98);
}

.section p,
.section li,
.hero__content p {
    font-size: 1.15rem;
}


.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    align-items: stretch;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) * 1.1);
    box-shadow: none;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: 0;
}

.hero__content,
.hero__media {
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0.8rem;
}

.hero__badge-year {
    color: var(--gold);
}

.hero__content h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 1rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 46ch;
    margin: 0 0 1rem;
}

.hero__content .lead {
    max-width: 52ch;
}

.hero__divider {
    width: 100%;
    max-width: 52ch;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-bottom: 1.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.78rem;
    color: var(--accent);
}

/* Make eyebrow inside hero match the H1 (parchment) color for visual harmony */
.hero__content .eyebrow {
    color: var(--parchment);
}

/* Make eyebrow inside section headers match the section's h2 color */
.section__header .eyebrow {
    color: inherit;
}

.lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero__meta-item {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__meta-label {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero__meta-value {
    margin: 0.4rem 0 0;
    font-size: 1.15rem;
    color: var(--parchment);
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2rem;
}

.hero__scroll-hint {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.15rem;
}

.hero__scroll-hint:hover,
.hero__scroll-hint:focus-visible {
    color: var(--gold);
    border-color: var(--gold);
}

.hero__support {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero__steward-card {
    margin-top: 1.75rem;
    width: 100%;
}

.button {
    background: linear-gradient(120deg, var(--gold), #f6d88b);
    color: var(--ink);
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
    position: relative;
    will-change: transform, box-shadow;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px) scale(1.002);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.27);
}

.button--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--parchment);
    box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--parchment);
    border-color: rgba(255, 255, 255, 0.55);
}

.button:active {
    transform: translateY(-1px) scale(0.998);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
    transition-duration: 120ms;
}


.hero__media {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    align-self: stretch;
}

.hero__image {
    position: relative;
    background: rgba(12, 6, 2, 0.85);
    border-radius: calc(var(--radius) * 1.1);
    padding: 2rem;
    border: 1px solid rgba(216, 168, 80, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero__image figcaption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.75rem;
    text-align: center;
}

.hero__glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(216, 168, 80, 0.45), transparent 60%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.hero__image img,
.hero__image figcaption {
    position: relative;
    z-index: 1;
}

.hero__image img {
    flex: 1;
    object-fit: cover;
    width: 100%;
}

.hero__seal-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero__seal-label {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.7rem;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero__seal-name {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: var(--gold);
}

.hero__seal-note {
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.section {
    padding: 4rem var(--page-padding);
    position: relative;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.section--dark {
    background: var(--bg-muted);
    color: var(--parchment);
}

.section--parchment {
    background: var(--parchment);
    color: var(--ink);
    border-left: 1px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
}

.section--parchment .eyebrow {
    color: var(--accent-deep);
}

/* Make eyebrow in section headers match the section heading color (h2)
   — for parchment sections ensure it matches the h2 (var(--ink)) */
.section--parchment .section__header .eyebrow {
    color: var(--ink);
}

.section--parchment h2,
.section--parchment h3,
.section--parchment p,
.section--parchment li {
    color: var(--ink);
}

.section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(0.75rem, 4vw, 1.75rem);
}

.section__header {
    max-width: 760px;
}

.section__header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.5rem;
}

.charter-grid,
.pillars-grid,
.funds-grid,
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.charter-grid article,
.pillar-card,
.funds-grid article,
.business-grid article {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.section--parchment .charter-grid article,
.section--parchment .funds-grid article,
.section--parchment .cta__form,
.section--parchment .archive__quote {
    background: #fff8ed;
    border: 1px solid rgba(43, 30, 16, 0.08);
    color: var(--ink);
}

.pillar-card ul,
.funds-grid ul,
.cta__highlights {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.pillar-card li,
.funds-grid li,
.cta__highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.pillar-card li::before,
.funds-grid li::before,
.cta__highlights li::before {
    content: "✦";
    color: var(--gold);
    font-size: 0.8rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    counter-reset: role;
}

.timeline article {
    padding: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.timeline article::before {
    counter-increment: role;
    content: counter(role, upper-roman);
    position: absolute;
    left: -1.35rem;
    top: 1.1rem;
    background: radial-gradient(circle at top, #fce7b6, var(--gold));
    color: var(--ink);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.accordion article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.accordion__trigger {
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    cursor: pointer;
}

.accordion__icon {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
    transform: rotate(45deg);
}

.accordion__panel {
    padding-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.archive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.archive__quote {
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.5rem;
    font-size: 1.2rem;
}

/* Archive of Deeds — centered, monochrome */
.archive-centered {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
}

.archive-centered .statement-text {
    max-width: 38ch;
}

.archive-list {
    list-style: disc;
    text-align: left;
    padding-left: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.archive-quote {
    margin: 0;
    padding-left: 1.2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
}

.archive-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: italic;
    opacity: 0.75;
}

.cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.cta__form {
    padding: 1.5rem;
    border-radius: var(--radius);
}

.cta__form.is-submitted {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.cta__form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta__form input,
.cta__form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-family: inherit;
    font-size: 1rem;
    background: #fffef9;
}

.cta__form button {
    width: 100%;
    margin-top: 0.5rem;
}

.form-hint {
    font-size: 0.85rem;
    color: rgba(43, 30, 16, 0.7);
    margin-top: 0.5rem;
}

/* Submission states and inline error for forms */
.cta__form.is-submitting {
    opacity: 0.95;
}

.form-error {
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    background: rgba(255, 80, 80, 0.08);
    color: #7a1f1f;
    border: 1px solid rgba(255, 80, 80, 0.12);
    font-size: 0.95rem;
}

.site-footer {
    padding: 2.5rem var(--page-padding);
    background: #080503;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.back-to-top {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--gold);
}

[data-animate="tilt"] {
    transition: transform 180ms ease-out;
}

[data-animate="tilt"].is-tilting {
    transform: rotateX(4deg) rotateY(2deg) scale(1.01);
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav__links {
        position: absolute;
        right: 1.25rem;
        top: 3.5rem;
        flex-direction: column;
        background: rgba(8, 5, 3, 0.95);
        padding: 1.25rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav__links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        z-index: 7;
    }
}

@media (max-width: 720px) {
    .hero {
        padding: 1.25rem;
        /* single-column stack on small screens to avoid overflow */
        grid-template-columns: 1fr;
        align-items: start;
    }

    /* ensure content stacks before the media and the media doesn't force excessive height */
    .hero__content {
        order: 1;
    }

    .hero__media {
        order: 2;
        height: auto;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__badge {
        width: 100%;
        justify-content: space-between;
    }

    /* reduce padding on the image container and cap explicit image height for mobile */
    .hero__image {
        padding: 1rem;
    }

    .hero__image img {
        height: 260px;
        width: 100%;
        object-fit: cover;
    }

    .hero__image figcaption {
        font-size: 0.85rem;
    }
}

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

/* scrollCue removed: reveal rules and keyframes were removed to avoid
   hiding content when the JS library is not used. */

/* Floating scroll-to-top bubble */
.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--gold), #f6d88b);
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 320ms cubic-bezier(.22,1,.36,1), transform 320ms cubic-bezier(.22,1,.36,1);
    z-index: 40;
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-top.hide-footer {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.98);
}

.scroll-top:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Match scroll-to-top button to the public monochrome theme */
body.public-site .scroll-top {
    background: #0a0a0a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

body.public-site .scroll-top:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

body.public-site .scroll-top svg path {
    stroke: currentColor !important;
}

/* Checkbox styling */
.form-group--checkbox {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #1a1410;
    border-radius: 0.25rem;
    background: white;
    transition: all 0.25s ease;
    margin-top: 0.1rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #1a1410;
    border-color: #1a1410;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(26, 20, 16, 0.2);
    outline: none;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #333;
    background: #f5f5f5;
}

.checkbox-text {
    flex: 1;
    color: inherit;
}

.checkbox-text a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid white;
    transition: color 0.2s ease;
}

.checkbox-text a:hover {
    color: #e0e0e0;
    border-bottom-color: #e0e0e0;
}

/* Inline checkbox label for forms */
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    margin: 0;
    width: 1.05rem;
    height: 1.05rem;
}

@media (max-width: 420px) {
    .scroll-top { right: 0.65rem; bottom: 0.9rem; width:44px; height:44px; }
}

/* Thank-you modal styles */
.modal {
    position: fixed;
    inset: 0;
    /* ensure modal is never shown accidentally by specificity issues */
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 80;
    pointer-events: none;
}
.modal[aria-hidden="false"] {
    /* explicit show when aria state is toggled */
    display: flex !important;
    pointer-events: auto;
}
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2,2,2,0.6);
    backdrop-filter: blur(2px);
}
.modal__panel {
    position: relative;
    background: linear-gradient(180deg, rgba(20,14,10,0.98), rgba(12,8,6,0.98));
    color: var(--parchment);
    border-radius: 14px;
    padding: 2rem;
    max-width: 680px;
    width: calc(100% - 3rem);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.04);
    transform: translateY(6px) scale(0.995);
    animation: modalIn 280ms cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(18px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    color: var(--parchment);
    font-size: 1.6rem;
    cursor: pointer;
}
.modal__panel h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.85rem;
    margin-top: 0;
}
.modal__panel p { margin-top: 0.6rem; font-size: 1.05rem; }
.modal__actions { margin-top: 1.15rem; display:flex; gap:0.75rem; justify-content:center; }
.modal__ok { text-decoration: none; }

@media (max-width: 520px) {
    .modal__panel { padding: 1.25rem; }
    .modal__panel h2 { font-size: 1.4rem; }
}

/* ----------------------------
   Public site (index.html)
---------------------------- */
body.public-site {
    background: #000;
    color: #fff;
    font-family: 'Share Tech Mono', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Private page aligned to public theme */
body.private-site {
    background: #000;
    color: #fff;
    font-family: 'Share Tech Mono', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gold: #ffffff;
    --accent: #ffffff;
    --accent-deep: #ffffff;
    --parchment: #ffffff;
    --parchment-deep: #ffffff;
    --ink: #000000;
    --ink-muted: #ffffff;
}

body.private-site .site-header,
body.private-site .section,
body.private-site .section--dark {
    background: #000;
    color: #fff;
}

body.private-site .section--parchment {
    background: #0a0a0a;
    color: #fff;
}

body.private-site .hero {
    background: #050505;
    border: none;
}

body.private-site .hero::before {
    display: none;
}

body.private-site .eyebrow,
body.private-site .brand__eyebrow,
body.private-site .hero__badge-year,
body.private-site .hero__meta-label,
body.private-site .hero__support,
body.private-site .lead,
body.private-site .hero__subtitle {
    color: #fff;
}

body.private-site .section__header .eyebrow {
    color: #fff !important;
}

body.private-site h1,
body.private-site h2,
body.private-site h3,
body.private-site .section__header h2,
body.private-site .section__header p,
body.private-site .archive__quote cite,
body.private-site .hero__seal-label,
body.private-site .hero__seal-name,
body.private-site .hero__seal-note {
    color: #fff;
}

body.private-site .hero__divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

body.private-site .hero__badge,
body.private-site .hero__steward-card,
body.private-site .pillar-card,
body.private-site .accordion__trigger,
body.private-site .accordion__panel,
body.private-site .business-grid article,
body.private-site .funds-grid article,
body.private-site .timeline article,
body.private-site .cta__form,
body.private-site .archive__quote {
    background: #0a0a0a;
    border: none;
    color: #fff;
}

body.private-site .hero__media {
    background: transparent;
    border: none;
}

body.private-site .hero__media img {
    background: transparent;
    border: none;
}

body.private-site .hero__glow {
    display: none;
}

body.private-site .hero__media img {
    opacity: 1 !important;
    filter: brightness(2.5) contrast(1.5) saturate(1.2) !important;
    z-index: 10 !important;
}

body.private-site .hero__image {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border: none;
}

body.private-site .accordion__trigger {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.private-site .accordion__icon {
    color: #fff;
}

body.private-site .button {
    background: #fff;
    color: #000;
    border: none;
}

body.private-site .button--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

body.private-site .nav__links a,
body.private-site .back-to-top {
    color: #fff;
}

body.private-site .nav__links a:hover,
body.private-site .nav__links a:focus-visible {
    color: #fff;
}

body.private-site .nav__links a::after {
    background: #fff;
}

body.private-site input,
body.private-site textarea,
body.private-site select {
    background: #050505;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.private-site input::placeholder,
body.private-site textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Force readable contrast on private page */
body.private-site,
body.private-site * {
    color: #fff;
}

body.private-site p,
body.private-site li,
body.private-site cite,
body.private-site blockquote {
    color: #fff;
}

body.private-site .section__header,
body.private-site .section__inner,
body.private-site .charter-grid article,
body.private-site .pillars-grid article,
body.private-site .funds-grid article,
body.private-site .business-grid article,
body.private-site .timeline article,
body.private-site .accordion__panel,
body.private-site .archive__quote,
body.private-site .cta__form {
    background: #0a0a0a;
}

body.private-site .section,
body.private-site .section--dark {
    background: #000;
}

body.private-site .section--parchment {
    background: #0a0a0a;
}

body.private-site .accordion__trigger {
    background: #0a0a0a;
    color: #fff;
}

body.private-site .accordion__panel {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.private-site .nav__links a::after {
    background: #fff;
}

body.private-site .button {
    background: #fff;
    color: #000;
    border: none;
}

body.private-site .button--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.public-site .site-header,
body.public-site .section {
    background: transparent;
}

.public-header {
    padding: 1rem var(--page-padding) 0;
    background: transparent;
    border: none;
}

.public-shell {
    max-width: 1100px;
    margin: 0 auto;
}

body.public-site .primary-nav {
    border: none;
    padding: 0.85rem 1rem 0;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.public-logo-wrap {
    background: transparent;
    border: none;
    padding: 0.35rem 0.45rem;
    display: grid;
    place-items: center;
}

.public-logo {
    width: 86px;
    height: auto;
    display: block;
}

.public-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

body.public-site .brand__name {
    font-size: 1.05rem;
    letter-spacing: 0.24em;
    font-family: 'Black Ops One', 'Cinzel', serif;
}

body.public-site .brand__eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

body.public-site .nav__links {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
}

body.public-site .nav__links a {
    border: none;
    padding: 0.35rem 0.6rem;
    font-family: 'Black Ops One', 'Cinzel', serif;
}

body.public-site .nav__links a::after {
    display: none;
}

body.public-site .nav__links a:hover,
body.public-site .nav__links a:focus-visible {
    background: #fff;
    color: #000;
}

.public-enter {
    background: #fff;
    color: #000;
}

.public-hero {
    margin-top: 2rem;
    border: 2px solid #fff;
    background: transparent;
    padding: clamp(3rem, 8vw, 6rem);
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
}

.public-hero--compact {
    text-align: center;
    border: none;
    padding: 0 clamp(2rem, 6vw, 4rem);
    display: grid;
    gap: 1.5rem;
    background: transparent;
}

.public-hero__logo {
    width: min(880px, 95%);
    height: auto;
    margin: 0 auto;
}

.public-hero__title {
    font-family: 'Black Ops One', 'Cinzel', serif;
    font-size: clamp(3.2rem, 7vw, 5.2rem);
    letter-spacing: 0.12em;
    margin: 0;
}

.public-hero__subtitle {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.95rem;
    color: var(--accent);
    margin: 0;
    font-weight: 500;
}

.public-hero__lede {
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.9;
    font-size: 1.15rem;
}

.public-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.7rem;
    margin: 0 0 0.6rem;
}

.public-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.public-actions--center {
    justify-content: center;
}

.public-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.3rem;
    border: 2px solid #fff;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 600;
}

.public-button--ghost {
    background: transparent;
    color: #fff;
}

.public-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
}

.public-hero__mark {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.public-hero__frame {
    border: 2px solid #fff;
    background: #fff;
    padding: clamp(1rem, 4vw, 2rem);
    display: grid;
    place-items: center;
}

.public-hero__frame img {
    width: min(260px, 100%);
    height: auto;
}

.public-hero__caption {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.public-section {
    padding: 3rem var(--page-padding);
    border: none;
    background: #000;
}

.public-section--border {
    border: none;
    background: #0a0a0a;
}

.public-section__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.public-section__inner--split {
    align-items: start;
}

.public-section__header {
    margin-bottom: 2rem;
}

.public-section__header h2 {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-family: 'Black Ops One', 'Cinzel', serif;
}

.public-callout {
    border: none;
    padding: 1.5rem;
    background: #050505;
}

.public-callout__title {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.public-card {
    border: none;
    padding: 1.5rem;
    background: #000;
    min-height: 160px;
}

.public-card h3 {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'Black Ops One', 'Cinzel', serif;
}

.public-portfolio {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr);
    gap: 2rem;
    align-items: start;
}

.public-portfolio__frame {
    border: none;
    min-height: 280px;
    background: repeating-linear-gradient(
        135deg,
        #1a1a1a 0,
        #1a1a1a 16px,
        #0a0a0a 16px,
        #0a0a0a 32px
    );
}

.public-portfolio__list article {
    border-bottom: none;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Portfolio — services-style layout */
.portfolio-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: start;
}

.portfolio-item:last-child {
    border-bottom: none;
}

.portfolio-visual {
    width: 100%;
    min-height: 360px;
    overflow: hidden;
}

.portfolio-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.portfolio-visual:hover img {
    filter: grayscale(0%);
}

.portfolio-content {
    display: grid;
    gap: 1rem;
}

.portfolio-head {
    display: grid;
    gap: 0.35rem;
}

.portfolio-chip {
    font-family: 'Cinzel', serif;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
    color: rgba(255, 255, 255, 0.9);
}

.portfolio-title {
    font-family: 'Black Ops One', 'Cinzel', serif;
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.15em;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
}

.portfolio-tagline {
    font-family: 'Cinzel', serif;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.portfolio-desc {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.portfolio-stack {
    display: grid;
    gap: 0.9rem;
}

.portfolio-block {
    display: grid;
    gap: 0.35rem;
}

.portfolio-block h4 {
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
}

.portfolio-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
    font-size: 0.9rem;
}

.portfolio-list {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.86);
    display: grid;
    gap: 0.35rem;
    line-height: 1.75;
    font-size: 0.9rem;
}

.portfolio-link {
    margin-top: 0.4rem;
    width: fit-content;
}

@media (max-width: 1024px) {
    .portfolio-item {
        grid-template-columns: 1fr;
    }
}

.portfolio-dropdown {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.6rem;
}

.portfolio-dropdown summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
    list-style: none;
    background: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-dropdown summary:hover {
    box-shadow: 0 0 0 2px #fff;
}

.portfolio-dropdown summary::marker {
    display: none;
}

.portfolio-dropdown summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.1rem;
    color: #000;
    transition: transform 200ms ease;
}

.portfolio-dropdown[open] summary::after {
    transform: rotate(45deg);
}

.portfolio-dropdown__content {
    padding: 0.4rem 0 0.2rem;
}

.public-contact {
    border: none;
    padding: 1.5rem;
    background: #050505;
    display: grid;
    gap: 0.75rem;
}

/* CONTACT SECTION REDESIGN */
.public-section--contact {
    background: #000;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-family: 'Black Ops One', 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    color: var(--accent);
}

.contact-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-info__item {
    display: grid;
    gap: 0.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info__item:last-child {
    border-bottom: none;
}

.contact-info__label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
}

.contact-info__item a {
    color: #fff;
    text-decoration: none;
    transition: color 300ms ease;
}

.contact-info__item a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info__item span:not(.contact-info__label) {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.contact-form label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 300ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form select {
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.form-actions {
    grid-column: 1 / -1;
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.form-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.public-footer {
    margin: 4rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem var(--page-padding) 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    background: transparent;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.footer-branding {
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-family: var(--font-primary);
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.footer-motto {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    margin: 0;
    font-weight: 400;
}

.public-divider {
    padding: 4rem 0;
    background: transparent;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2) 50%, transparent);
    position: relative;
}

.divider-line::before {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.6rem;
    background: #000;
    padding: 0 1.5rem;
}

.public-section--statement {
    background: #000;
}

.statement-header {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 3rem;
    text-align: center;
    justify-items: center;
}

.statement-kicker {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.statement-title {
    font-family: 'Black Ops One', 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
    color: var(--accent);
}

.statement-lede {
    max-width: 60ch;
    margin: 0;
    line-height: 1.9;
    color: #fff;
    font-size: 1.05rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 2.5rem 1rem;
    align-items: start;
}

.about-grid > *:nth-child(2) {
    grid-row: 1 / 3;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid > *:nth-child(2) {
        grid-row: auto;
    }
}

.statement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .statement-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.statement-text {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 42ch;
}

.statement-image {
    border: none;
    height: 80%;
    min-height: 280px;
    background: repeating-linear-gradient(
        135deg,
        #1a1a1a 0,
        #1a1a1a 10px,
        #0a0a0a 10px,
        #0a0a0a 20px
    );
    border-radius: 0;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 600ms ease;
}

.statement-image:hover {
    filter: grayscale(0%);
}

.statement-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.statement-points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.statement-points li::before {
    content: "";
    width: 16px;
    height: 2px;
    background: #fff;
}

.statement-footer {
    margin-top: 2rem;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

/* MEMBERS SECTION */
.public-section--members {
    background: #000;
}

.members-header {
    text-align: center;
    margin-bottom: 3rem;
}

.members-title {
    font-family: 'Black Ops One', 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    font-weight: 700;
    color: var(--accent);
}

.members-subtitle {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.member-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

.member-image {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(100%);
    transition: filter 600ms ease;
}

.member-image img:hover {
    filter: grayscale(0%);
}

.member-image img.is-bw {
    filter: grayscale(100%);
}

.member-info {
    display: grid;
    gap: 0.75rem;
}

.member-name {
    font-family: 'Black Ops One', 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    margin: 0;
    font-weight: 700;
    color: var(--accent);
}

.member-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin: 0;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0.5rem 0 0 0;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-badge {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
}

.member-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.member-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 300ms ease;
}

.member-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.pledge-form {
    margin: 0;
}

.pledge-container {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: clamp(1.6rem, 4vw, 2.6rem);
    padding: clamp(1.4rem, 4vw, 2.6rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: calc(var(--radius) * 1.05);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    align-items: start;
}

.pledge-content {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pledge-content h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pledge-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.2rem 0 0.2rem;
}

.pledge-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.86);
}

.pledge-note {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.7;
}

.pledge-form__fields {
    display: grid;
    gap: 0.9rem;
}

.pledge-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.pledge-form input,
.pledge-form textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.pledge-form input:focus,
.pledge-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(140, 196, 201, 0.25);
}

.pledge-form textarea {
    resize: vertical;
}

.pledge-form .checkbox-inline {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.pledge-form .checkbox-inline input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.pledge-form .public-button {
    width: 100%;
}

.form-hint {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 960px) {
    .pledge-container {
        grid-template-columns: 1fr;
    }

    .pledge-content {
        order: -1;
    }
}

.public-section--wall {
    background: #000;
}

.services-header {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    justify-items: center;
}

.services-title {
    font-family: 'Black Ops One', 'Cinzel', serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
    color: var(--accent);
}

.services-lede {
    margin: 0;
    max-width: 70ch;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.85;
}

.services-grid {
    display: grid;
    gap: 1.75rem;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0;
    position: relative;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-item:last-child {
    border-bottom: none;
}

.service-image {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    opacity: 0.88;
    filter: grayscale(100%);
    transition:
        opacity 820ms cubic-bezier(0.4, 0.12, 0.2, 1),
        transform 820ms cubic-bezier(0.4, 0.12, 0.2, 1),
        filter 820ms cubic-bezier(0.4, 0.12, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom right, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 6, 2, 0.82);
    opacity: 0;
    transition: opacity 900ms cubic-bezier(0.4, 0.12, 0.2, 1);
    pointer-events: none;
    z-index: 2;
}

.service-overlay-list {
    position: absolute;
    inset: 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    color: var(--parchment);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 740ms cubic-bezier(0.4, 0.12, 0.2, 1), transform 740ms cubic-bezier(0.4, 0.12, 0.2, 1);
    transition-delay: 140ms;
}

.service-overlay-list__title {
    font-family: 'Black Ops One', 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: var(--accent);
}

.service-overlay-list ul {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.45rem;
    list-style: disc;
}

.typewriter-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.45rem;
}

.typewriter-list li {
    position: relative;
    padding-left: 1.1rem;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    white-space: normal;
    overflow: hidden;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.45;
}

.typewriter-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.9;
}

.service-item.is-open .typewriter-list li {
    animation: typewriterIn 0.9s steps(24) forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes typewriterIn {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.service-trigger {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-family: 'Black Ops One', 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 240ms ease, background 240ms ease, color 240ms ease, transform 200ms ease;
}

.service-trigger::after {
    content: "✦";
    font-size: 0.75rem;
    color: var(--gold);
    opacity: 0.7;
    transition: transform 200ms ease;
}

.service-trigger:hover,
.service-trigger:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.service-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.service-item.is-open .service-trigger::after {
    transform: rotate(90deg);
}

.service-item.is-open .service-image::after {
    opacity: 1;
}

.service-item.is-open .service-overlay-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.service-item.is-open .service-image {
    opacity: 0.7;
    filter: grayscale(100%);
    transform: scale(0.995);
}

.service-item:hover .service-image {
    filter: grayscale(0%);
}

/* Hide native dropdown now that we use custom trigger/overlay */
.service-dropdown {
    display: none;
}

/* Alternate layout for even service items */
.service-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.service-item:nth-child(even) .service-image {
    order: 2;
}

.service-item:nth-child(even) .service-content {
    order: 1;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
}

.service-number {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
}

.service-title {
    font-family: 'Black Ops One', 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 700;
    margin: 0;
}

.service-bar {
    height: clamp(28px, 4vw, 52px);
    border-radius: 12px;
    background: repeating-linear-gradient(
        90deg,
        #1a1a1a 0,
        #1a1a1a 14px,
        #0a0a0a 14px,
        #0a0a0a 28px
    );
    position: relative;
    overflow: hidden;
}

.service-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    animation: serviceSweep 3.2s ease-in-out infinite;
}

.service-bar--wide {
    width: 100%;
}

.service-bar--short {
    width: 70%;
}

.service-tagline {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0.25rem 0 0 0;
}

.service-desc {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    transition: transform 500ms ease-out, color 500ms ease-out;
}

.service-item:hover .service-desc,
.service-item:focus-within .service-desc {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.92);
}

.service-item:hover .service-bar::after,
.service-item:focus-within .service-bar::after {
    animation-duration: 2.4s;
}

.service-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 0.5rem;
    transition: background 400ms ease-out, border-color 400ms ease-out;
}

.service-dropdown:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-dropdown summary {
    cursor: pointer;
    list-style: none;
    font-family: 'Black Ops One', 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 400ms ease-out;
}

.service-dropdown summary:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* Commission section: simplified timeline presentation */
#commissions .services-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

#commissions .services-grid::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

#commissions .service-item {
    display: block;
    padding: 0 0 0 2.5rem;
    border: none;
    border-bottom: none;
    box-shadow: none;
    grid-template-columns: none;
    gap: 0.75rem;
    position: relative;
}

#commissions .service-item:last-child {
    padding-bottom: 0;
}

#commissions .service-item::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

#commissions .service-content {
    gap: 0.5rem;
}

#commissions .service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
}

#commissions .service-content h3 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
}

#commissions .service-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Twin Reserve Funds */
#coffers .reserve-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

#coffers .reserve-column {
    padding: 1.35rem 1.1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

#coffers .reserve-column:hover,
#coffers .reserve-column:focus-within {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

#coffers .reserve-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.6rem;
}

#coffers .reserve-chip--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.68);
}

#coffers .reserve-column h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

#coffers .reserve-column p {
    margin: 0 0 0.6rem;
    color: rgba(255, 255, 255, 0.8);
}

#coffers .reserve-points {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.76);
    display: grid;
    gap: 0.35rem;
}

/* Governance & Business Model */
#business .governance-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

#business .governance-timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

#business .governance-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

#business .governance-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
    margin-top: 0.2rem;
}

#business .governance-content {
    display: grid;
    gap: 0.35rem;
}

#business .governance-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.2em;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
}

#business .governance-content h3 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

#business .governance-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

#business .governance-content ul {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.76);
    display: grid;
    gap: 0.3rem;
}

.service-dropdown summary::-webkit-details-marker {
    display: none;
}

.service-dropdown summary::after {
    content: "+";
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 400ms ease-out, color 400ms ease-out;
}

.service-dropdown summary:hover::after {
    color: rgba(255, 255, 255, 0.8);
}

.service-dropdown[open] summary::after {
    content: "–";
    transform: rotate(180deg);
}

.service-dropdown__content {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
    animation: dropdownFade 500ms ease-out;
}

.service-dropdown__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-dropdown__content p strong {
    color: rgba(255, 255, 255, 0.95);
}

.service-dropdown__content ul {
    margin: 0;
    padding-left: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.service-dropdown__content li {
    margin-bottom: 0.5rem;
}

/* Process Section */
.services-process {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services-process__title {
    font-family: 'Black Ops One', 'Cinzel', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 3rem 0;
    color: var(--accent);
}

.services-process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.process-step {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 400ms ease-out;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.process-step__number {
    display: block;
    font-family: 'Black Ops One', 'Cinzel', serif;
    font-size: 2.2rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.process-step h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.75rem 0;
}

.process-step p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes serviceSweep {
    0% { transform: translateX(-100%); }
    55% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .service-bar::after {
        animation: none;
    }

    .service-item:hover .service-desc,
    .service-item:focus-within .service-desc {
        transform: none;
    }
}

/* Image Lightbox Modal */
.image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms ease, visibility 400ms ease;
    z-index: 9999;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.image-modal__content {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    animation: modalPop 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-modal__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.image-modal__close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease;
}

.image-modal__close:hover {
    transform: scale(1.1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .public-portfolio {
        grid-template-columns: 1fr;
    }

    .services-process__steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Compact Pillars Layout */
.pillars-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pillar-compact {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pillar-compact:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.pillar-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--parchment);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pillar-compact:hover .pillar-number {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.pillar-compact h3 {
    margin: 1rem 0 0.75rem 0;
    font-size: 1.2rem;
    color: var(--parchment);
    font-weight: 600;
}

.pillar-compact p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--parchment);
    opacity: 0.9;
    margin: 0;
}

/* Temple Illustration */
.temple-image {
    max-width: 860px;
    margin: 3rem auto 2.5rem;
    display: flex;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    isolation: isolate; /* keeps blend-mode contained to this block */
}

.temple-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    background: transparent;
    mix-blend-mode: multiply; /* drops white backgrounds so the dark page shows through */
    filter: grayscale(1) contrast(1.08) brightness(1.05);
}

/* Pillars Legend */
.pillars-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pillar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.pillar-item strong {
    display: block;
    font-size: 1rem;
    color: var(--parchment);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pillar-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--parchment);
    opacity: 0.85;
    margin: 0;
}

@media (max-width: 768px) {
    .temple-image {
        margin: 2.5rem auto 2rem;
        padding: 0.75rem;
    }

    .pillars-legend {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .temple-image {
        margin: 2rem auto 1.5rem;
        padding: 0.6rem;
    }

    .pillar-item {
        padding: 1rem;
    }

    .pillar-item strong {
        font-size: 0.9rem;
    }

    .pillar-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 720px) {
    .pillars-compact {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2.5rem 0;
    }

    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 280px;
        order: -1 !important;
    }

    .service-content {
        order: 0 !important;
    }

    .service-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .services-process__steps {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding: 1.75rem 1.25rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info {
        display: none;
    }

    .contact-form {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .public-footer {
        margin: 3rem 0 0 0;
        padding: 2.5rem 1rem 1.5rem;
        gap: 1.5rem;
    }

    .footer-links {
        gap: 2rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    body.public-site .nav__links a {
        border-width: 1px;
    }
}
