:root {
    --color-primary: #333333;
    --color-secondary: #fbcb28;
    --color-text: #a1861c;
    --color-accent: #f39200;
    --color-soft: #33333314;
    --color-white: #ffffff;
    --color-cream: #e6e2ce;
    --color-line: rgba(51, 51, 51, 0.18);
    --shadow-soft: 0 24px 80px rgba(51, 51, 51, 0.12);
    --font-body: "Inter", Arial, sans-serif;
    --font-display: "Epilogue", "Inter", Arial, sans-serif;
    --max-width: 1140px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    overflow-x: hidden;
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.container {
    width: calc(100% - 40px);
    max-width: var(--max-width);
    margin-inline: auto;
}

.container.wide {
    max-width: 1280px;
}

.site-header {
    padding: 20px 0 40px;
    animation: float-in 700ms ease both;
}

.header-inner {
    display: flex;
    justify-content: center;
}

.brand-logo {
    display: block;
    width: min(550px, 100%);
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    transition:
        transform 450ms ease,
        filter 450ms ease;
}

.brand-logo:hover img,
.brand-logo:focus-visible img {
    filter: saturate(1.08);
    transform: translateY(-3px);
}

.section {
    padding: 60px 0;
}

.intro-section {
    padding-top: 0;
    padding-bottom: 80px;
}

.intro-section .split {
    grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
    gap: 48px;
}

.band {
    background: var(--color-soft);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
    gap: 0;
    align-items: end;
}

.copy-block {
    min-width: 0;
    max-width: 760px;
}

.copy-block.narrow {
    max-width: 980px;
}

.bordered {
    border-left: 1px solid var(--color-secondary);
    padding-left: 20px;
    transition:
        border-color 300ms ease,
        transform 300ms ease;
}

.bordered:hover {
    border-color: var(--color-accent);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    margin-bottom: 18px;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}

h3 {
    margin-bottom: 12px;
    color: var(--color-primary);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: capitalize;
}

p {
    margin-bottom: 18px;
}

p:last-child {
    margin-bottom: 0;
}

.media-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.placeholder,
.gallery-tile {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--color-line);
    background:
        linear-gradient(
            135deg,
            rgba(251, 203, 40, 0.18) 0 25%,
            transparent 25% 50%,
            rgba(51, 51, 51, 0.06) 50% 75%,
            transparent 75%
        ),
        var(--color-cream);
    background-size: 28px 28px;
    color: var(--color-primary);
    text-align: center;
    transition:
        border-color 250ms ease,
        box-shadow 250ms ease,
        transform 250ms ease;
}

.placeholder::after,
.gallery-tile::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(51, 51, 51, 0.35);
    pointer-events: none;
}

.placeholder span,
.gallery-tile span {
    position: relative;
    z-index: 1;
    display: block;
    max-width: calc(100% - 32px);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.placeholder small,
.gallery-tile small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 4px;
    color: rgba(51, 51, 51, 0.74);
    font-size: 12px;
    font-weight: 400;
}

.aspect-4-3 {
    width: min(100%, 800px);
    aspect-ratio: 4 / 3;
}

.welcome-photo {
    display: block;
    height: auto;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.gallery {
    display: grid;
    gap: 12px;
}

.gallery-agape {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 42px;
    transform: translateY(14px);
}

.gallery-life {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gallery-tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    cursor: pointer;
    font: inherit;
    padding: 16px;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.gallery-agape .gallery-tile {
    border: 5px solid var(--color-secondary);
}

.photo-tile {
    background: var(--color-cream);
}

.photo-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-tile::after {
    content: none;
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(51, 51, 51, 0.2);
    outline: none;
}

.gallery-tile:hover::before,
.gallery-tile:focus-visible::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
}

.foundation-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.foundation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(30px, 4vw, 52px);
}

.foundation-title {
    display: grid;
    grid-template-columns: minmax(210px, 320px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
    padding: 0;
}

.foundation-logo {
    display: block;
    width: min(320px, 100%);
    height: auto;
    justify-self: start;
}

.display-title {
    margin: 0;
    color: var(--color-secondary);
    font-family: var(--font-display);
    font-size: clamp(42px, 4vw, 84px);
    font-weight: 600;
    line-height: 0.96;
}

.foundation-copy {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 58px);
    align-items: center;
    background: var(--color-soft);
    padding: clamp(30px, 4vw, 56px);
    box-shadow: var(--shadow-soft);
}

.profile-photo {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 4 / 3;
    margin: 0;
    justify-self: start;
}

.profile-photo::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 3px solid var(--color-secondary);
    pointer-events: none;
    transition: transform 300ms ease;
}

.profile-photo img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    box-shadow: 0 20px 56px rgba(51, 51, 51, 0.18);
    transition:
        filter 350ms ease,
        transform 350ms ease;
}

.profile-photo:hover::before {
    transform: translate(-6px, -6px);
}

.profile-photo:hover img {
    filter: saturate(1.05) contrast(1.02);
    transform: translateY(-4px);
}

.foundation-text {
    max-width: none;
    margin-top: 10px;
}

.support-section {
    padding-top: 60px;
    padding-bottom: 70px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
    margin-top: 44px;
    align-items: start;
}

.support-item {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
    padding-top: 8px;
    transition: transform 240ms ease;
}

.support-item:hover {
    transform: translateY(-5px);
}

.support-heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 58px;
}

.support-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
    transition:
        transform 280ms ease,
        background-color 280ms ease;
}

.support-icon svg,
.support-icon img {
    width: 25px;
    height: 25px;
}

.support-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.support-icon img {
    display: block;
    object-fit: contain;
}

.support-item:hover .support-icon {
    background: var(--color-accent);
}

.support-item h3 {
    margin: 0;
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.18;
    text-transform: none;
}

.support-details,
.support-points,
.support-copy {
    display: grid;
    gap: 10px;
}

.support-details p,
.support-points,
.support-copy {
    margin: 0;
}

.support-details p {
    display: grid;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.12);
}

.support-details p:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.support-details strong {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
}

.support-details span,
.support-points li,
.support-copy {
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.support-points {
    padding: 0;
    list-style: none;
}

.support-points li {
    position: relative;
    padding-left: 18px;
}

.support-points li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-secondary);
    transform: translateY(-50%);
}

.life-section {
    padding-top: 100px;
    padding-bottom: 0;
    overflow: hidden;
}

.life-title {
    margin: 0 0 24px;
    color: var(--color-secondary);
    font-family: var(--font-display);
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 600;
    line-height: 1;
    transform-origin: left center;
}

.contact-section {
    margin-top: 100px;
    background: var(--color-primary);
    color: var(--color-white);
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding-top: 70px;
    padding-bottom: 70px;
}

.contact-info {
    display: grid;
    justify-items: start;
    max-width: 520px;
}

.contact-section h2 {
    color: var(--color-white);
    margin-bottom: 12px;
}

.contact-info p {
    margin-bottom: 18px;
}

.contact-links {
    display: grid;
    gap: 8px;
    font-style: normal;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.25;
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.contact-links svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    color: var(--color-white);
    transform: translateX(3px);
}

.contact-map {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 2px solid rgba(251, 203, 40, 0.38);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
    filter: saturate(0.95) contrast(1.04);
}

.map-open {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    transition:
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.map-open:hover,
.map-open:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.32);
    outline: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    padding: 80px 92px 48px;
    background: rgba(16, 16, 16, 0.82);
    animation: lightbox-fade 220ms ease both;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 18px;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
}

.lightbox-actions {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;
    display: flex;
    gap: 20px;
    align-items: center;
}

.lightbox-tool,
.lightbox-close,
.lightbox-nav {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    font: inherit;
}

.lightbox-tool,
.lightbox-close {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    font-size: 26px;
    line-height: 1;
}

.lightbox-tool svg,
.lightbox-tool img,
.lightbox-close svg {
    display: block;
}

.lightbox-tool .inactive {
    display: none;
}

.lightbox-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 148px);
    margin: 0;
    overflow: hidden;
}

.lightbox-slider {
    width: min(78vw, 1120px);
    max-width: 100%;
    overflow: hidden;
}

.lightbox-track {
    display: flex;
    align-items: center;
    transition: transform 430ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.lightbox-slide {
    display: grid;
    flex: 0 0 100%;
    min-width: 0;
    place-items: center;
    opacity: 0.34;
    transform: scale(0.94);
    transition:
        opacity 330ms ease,
        transform 430ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 142px);
    object-fit: contain;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
    animation: image-pop 260ms ease both;
}

.placeholder-lightbox {
    width: min(720px, 78vw);
    aspect-ratio: 1 / 1;
    border-color: var(--color-secondary);
}

.lightbox-caption {
    position: relative;
    margin-top: 16px;
    width: min(100%, 820px);
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 58px;
    height: 80px;
    place-items: center;
    margin-top: -40px;
    line-height: 1;
}

.lightbox-nav svg {
    display: block;
}

.lightbox-prev {
    left: 56px;
}

.lightbox-next {
    right: 56px;
}

.lightbox-tool:hover,
.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-tool:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    color: var(--color-secondary);
    outline: none;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lightbox-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes image-pop {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    body {
        font-size: 14px;
    }

    h1,
    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    .container,
    .container.wide {
        width: calc(100% - 32px);
        max-width: 1024px;
    }

    .split,
    .foundation-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .intro-section .split {
        grid-template-columns: 1fr;
    }

    .foundation-title {
        display: grid;
        grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
        align-items: center;
        padding: 0;
    }

    .foundation-copy {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .profile-photo {
        justify-self: center;
    }

    .gallery-agape,
    .gallery-life {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}

@media (max-width: 750px) {
    .site-header {
        padding-bottom: 28px;
    }

    .section {
        padding: 48px 0;
    }

    .intro-section {
        padding-top: 0;
        padding-bottom: 56px;
    }

    .container,
    .container.wide {
        width: calc(100% - 28px);
        max-width: 767px;
    }

    .bordered {
        padding-left: 16px;
    }

    .support-grid,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .foundation-copy {
        padding: 32px 18px;
    }

    .lightbox {
        padding: 72px 22px 42px;
    }

    .lightbox-actions {
        gap: 14px;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: calc(100vh - 150px);
    }

    .lightbox-nav {
        top: auto;
        bottom: 50px;
        width: 46px;
        height: 56px;
        font-size: 54px;
    }

    .lightbox-prev {
        left: 14px;
    }

    .lightbox-next {
        right: 14px;
    }

    .lightbox-caption {
        font-size: 16px;
    }

    .contact-section {
        margin-top: 70px;
    }

    .contact-inner {
        gap: 28px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .contact-info {
        max-width: none;
    }

    .contact-map iframe {
        height: 230px;
    }
}

@media (max-width: 600px) {
    .foundation-title {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .foundation-logo {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: min(180px, 100%);
    }
    .display-title {
        text-align: center;
    }
    .gallery-agape {
        grid-template-columns: 1fr;
    }

    .gallery-life {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 500px) {
    .lightbox {
        padding: 72px 10px 86px;
    }

    .lightbox-stage {
        min-height: calc(100vh - 158px);
    }

    .lightbox-image {
        max-height: calc(100vh - 172px);
    }

    .lightbox-caption {
        position: fixed;
        right: 50px;
        bottom: 18px;
        left: 50px;
        display: -webkit-box;
        width: auto;
        max-height: 2.5em;
        margin: 0;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: clamp(15px, 4.3vw, 17px);
        line-height: 1.22;
        overflow-wrap: anywhere;
    }

    .lightbox-nav {
        position: fixed;
        top: auto;
        bottom: 8px;
        width: 42px;
        height: 64px;
        margin-top: 0;
    }

    .lightbox-prev {
        left: 4px;
    }

    .lightbox-next {
        right: 4px;
    }
}

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