.container {
    width: min(calc(100% - (2 * var(--space-page))), var(--container-max));
    margin-inline: auto;
}

.flow > * + * {
    margin-block-start: 1.25rem;
}

.site-header {
    position: relative;
    z-index: var(--z-header);
    min-height: var(--header-height);
    color: var(--color-blue);
    background: var(--color-white);
}

.site-header--overlay {
    position: absolute;
    inset: 0 0 auto;
    color: var(--color-white);
    background: transparent;
}

.site-header--solid {
    border-bottom: 0.0625rem solid rgb(42 79 89 / 14%);
}

.site-header__inner {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 5.5rem);
}

.primary-navigation ul {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2vw, 2.4rem);
}

.site-footer {
    color: var(--color-white);
    background: var(--color-green);
}

.site-footer__inner {
    display: grid;
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
    grid-template-columns: minmax(18rem, 1.5fr) repeat(2, minmax(10rem, 0.6fr));
    gap: clamp(3rem, 8vw, 9rem);
}

.site-footer__logo {
    display: block;
    width: min(100%, 14rem);
}

.site-footer__logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.site-footer__brand > p {
    margin-top: 2rem;
    color: rgb(255 255 255 / 68%);
    font-size: 0.95rem;
}

.site-footer__label {
    margin-bottom: 1.5rem;
    color: var(--color-sand);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer__column li + li {
    margin-top: 0.75rem;
}

.site-footer__column a {
    color: rgb(255 255 255 / 82%);
    font-size: 0.92rem;
    text-decoration: none;
}

.site-footer__column a:hover,
.site-footer__column a:focus-visible {
    color: var(--color-white);
}

.site-footer__base {
    padding-block: 1.5rem 2rem;
    border-top: 0.0625rem solid rgb(255 255 255 / 16%);
    color: rgb(255 255 255 / 55%);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1.5rem;
}

/* Shared compact footer. */
.site-footer--compact { --container-max: 90rem; --space-page: clamp(4rem, 5.55vw, 6rem); background: var(--color-green); color: #f7f4ed; }
.footer-band__main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; padding-block: 2.25rem; }
.footer-band__logo { grid-column: 1 / span 2; display: flex; align-items: center; min-height: 2rem; padding-right: 2rem; border-right: 1px solid rgb(228 207 161 / 25%); }
.footer-band__logo img { display: block; width: 100%; max-width: 10.5rem; height: auto; }
.footer-band__navigation { grid-column: 3 / span 7; padding-inline: 2.5rem 1rem; }
.footer-band__navigation ul { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.75rem; }
.footer-band__navigation a { display: inline-block; padding-block: .5rem; color: rgb(247 244 237 / 85%); font-size: .75rem; line-height: 1.4; text-decoration: none; transition: color 160ms ease; }
.footer-band__navigation a:hover { color: var(--color-sand); }
.footer-band__signature { grid-column: 10 / span 3; display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; color: var(--color-sand); font-size: .625rem; line-height: 1.6; letter-spacing: .13em; text-transform: uppercase; }
.footer-band__signature::before { content: ""; width: 3.5rem; height: 1px; flex-shrink: 0; background: var(--color-sand); opacity: .7; }
.footer-band__base { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgb(228 207 161 / 18%); padding-block: 1.25rem; color: rgb(247 244 237 / 58%); font-size: .625rem; line-height: 1.5; }
@media (min-width: 768px) and (max-width: 1100px) {
    .site-footer--compact { --space-page: 2rem; }
    .footer-band__logo { padding-right: 1rem; }
    .footer-band__navigation { padding-inline: 1.25rem .75rem; }
    .footer-band__navigation ul { gap: .5rem 1rem; }
    .footer-band__signature { gap: .75rem; font-size: .5625rem; }
    .footer-band__signature::before { width: 1.5rem; }
}
@media (max-width: 767px) {
    .site-footer--compact { --space-page: 1.5rem; }
    .footer-band__main { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-block: 2rem 1.5rem; }
    .footer-band__logo, .footer-band__navigation, .footer-band__signature { grid-column: 1 / -1; }
    .footer-band__logo { border: 0; padding: 0; min-height: 0; }
    .footer-band__logo img { width: 9rem; }
    .footer-band__navigation { padding: 0; }
    .footer-band__navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
    .footer-band__navigation a { font-size: .8125rem; padding-block: .625rem; }
    .footer-band__signature { justify-content: flex-start; padding-top: 1rem; border-top: 1px solid rgb(228 207 161 / 18%); }
    .footer-band__signature::before { width: 2rem; }
    .footer-band__base { font-size: .625rem; padding-block: 1rem 1.25rem; }
    .footer-band__detail { display: none; }
}
@media (prefers-reduced-motion: reduce) { .footer-band__navigation a { transition: none; } }
