.footer-closing {
    position: relative;
    isolation: isolate;
    border-top: 0;
    background: var(--deep);
    color: var(--paper);
}

.footer-surface {
    --footer-corner: clamp(1rem, 2.3vw, 2.4rem);
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    border-radius: var(--footer-corner) var(--footer-corner) 0 0;
    background: #102d49;
    pointer-events: none;
}

.footer-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% 50%;
}

.footer-surface::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgb(3 18 37 / 90%), rgb(3 18 37 / 57%) 18%, transparent 58%),
        linear-gradient(90deg, rgb(3 18 37 / 82%) 0%, rgb(3 18 37 / 64%) 40%, rgb(3 18 37 / 34%) 61%, rgb(3 18 37 / 63%) 77%);
    content: "";
}

.footer-scene {
    padding-top: clamp(3.75rem, 7vw, 7.6rem);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12.5rem, .42fr);
    align-items: center;
    gap: clamp(1.75rem, 6vw, 7rem);
    padding-bottom: clamp(2.5rem, 5.8vw, 5.8rem);
}

.footer-callout h2 {
    font: 340 clamp(2.8rem, 6.7vw, 7rem)/1.02 var(--display);
    font-stretch: 77%;
    letter-spacing: .005em;
    word-spacing: .05em;
}

.footer-title-line { display: block; }
.footer-title-period { color: var(--accent); }

.footer-pressure-word { white-space: nowrap; }

.footer-pressure-glyph {
    display: inline-block;
    inline-size: var(--glyph-advance);
    text-align: center;
}

.footer-pressure-ink {
    display: block;
    transform-origin: 50% 80%;
    transition: font-weight .42s cubic-bezier(.22,.72,.16,1),
        transform .42s cubic-bezier(.22,.72,.16,1);
}

.footer-callout h2.is-pressing .footer-pressure-ink { transition-duration: .16s; }

.footer-details { font-style: normal; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.footer-hours { color: var(--text-muted); font-size: .9375rem; }
.footer-hours strong { margin-inline-end: .35rem; color: var(--paper); }
.footer-hours span { white-space: nowrap; }
.footer-contacts a {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    max-width: 100%;
    font-size: .9375rem;
    font-weight: 680;
    overflow-wrap: anywhere;
    text-decoration: none;
    text-underline-offset: .25em;
    transition: color .23s;
}
.footer-contacts a:is(:hover, :focus-visible) { color: var(--accent-soft); text-decoration: underline; }

.footer-closing .footer-nav {
    display: grid;
    gap: .2rem;
    width: 100%;
}

.footer-closing .footer-nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .45rem .65rem;
    border-radius: .5rem;
    color: inherit;
    font-size: 1rem;
    line-height: 1.18;
    text-decoration: none;
    transition: color .24s, background .3s;
}

.footer-nav a span {
    transition: transform .4s cubic-bezier(.23, .8, .25, 1);
}

.footer-closing .footer-nav a:is(:hover, :focus-visible) {
    color: var(--accent);
    background: rgb(244 246 250 / 8%);
}

.footer-nav a:is(:hover, :focus-visible) span { transform: translateX(.4rem); }

.footer-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem clamp(1.25rem, 3.4vw, 3.75rem);
    padding-block: 1.25rem 1.55rem;
    border-top: 1px solid rgb(244 246 250 / 23%);
}

.footer-meta .brand--footer { width: 9.75rem; }
.footer-top { justify-self: start; --button-fill: rgb(244 246 250 / 9%); }

.footer-top-icon {
    display: grid;
    place-items: center;
    width: .85rem;
    height: .85rem;
}

.footer-top-icon::before {
    width: .55rem;
    height: .55rem;
    border-top: 2px solid;
    border-left: 2px solid;
    content: "";
    transform: translateY(.16rem) rotate(45deg);
    transition: transform .4s cubic-bezier(.23, .8, .25, 1);
}

.footer-top:is(:hover, :focus-visible) .footer-top-icon::before {
    transform: translateY(-.02rem) rotate(45deg);
}

@media (max-width: 760px) {
    .footer-photo { object-position: 72% 50%; }
    .footer-surface::after {
        background: linear-gradient(180deg, rgb(3 18 37 / 65%), rgb(3 18 37 / 60%) 45%, rgb(3 18 37 / 89%) 100%);
    }
    .footer-main { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
    .footer-callout h2 { font-size: clamp(2rem, 8.4vw, 4.4rem); }
    .footer-closing .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .9rem; }
    .footer-closing .footer-nav a:last-child { grid-column: 1 / -1; justify-self: start; }
    .footer-meta { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
    .footer-meta .brand--footer { grid-column: 1 / -1; }
    .footer-contacts a { min-height: 2.75rem; }
}

@media (max-width: 500px) {
    .footer-meta { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .footer-closing *, .footer-closing *::before, .footer-closing *::after { transition: none; }
}

@media (forced-colors: active) {
    .footer-photo, .footer-surface::after { display: none; }
}
