/* Scene 7, the close over the caldera at dusk, and the footer with its credits. */

.sc--close {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto; column-gap: 40px;
  min-height: max(100svh, 680px); padding: clamp(110px, 16svh, 170px) var(--gut) calc(env(safe-area-inset-bottom, 0px) + clamp(18px, 2.4vw, 34px));
  color: var(--bone);
}
.c-hl { display: contents; }
.c-hl__a, .c-hl__b { font-size: var(--t-hl); font-weight: 520; font-stretch: 125%; line-height: .9; letter-spacing: -.035em; }
.c-hl__a { grid-column: 1 / -1; grid-row: 1; }
.c-hl__b { grid-column: 1 / -1; grid-row: 2; justify-self: end; text-align: right; margin-top: .18em; color: var(--dusk); }

.c-steps { grid-column: 1; grid-row: 4; align-self: end; width: min(100%, calc(50vw - var(--gut) - 170px)); list-style: none; margin: 0 0 clamp(70px, 9svh, 96px); padding: 0; }
.c-steps li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); align-items: baseline; padding: 12px 0; border-top: 1px solid var(--hair); font-size: clamp(16px, 1.35vw, 24px); font-weight: 500; font-stretch: 108%; letter-spacing: -.01em; }
.c-steps li:last-child { border-bottom: 1px solid var(--hair); }
.c-steps span { font-family: var(--f-mono); font-size: var(--t-lab); letter-spacing: .12em; color: var(--dusk); }

.c-act { grid-column: 2; grid-row: 4; align-self: end; justify-self: end; list-style: none; margin: 0 0 clamp(70px, 9svh, 96px); padding: 0; display: grid; gap: 4px; text-align: right; }
.c-act a { display: grid; gap: 4px; padding: 9px 0; text-decoration: none; font-size: clamp(16px, 1.35vw, 24px); font-weight: 500; font-stretch: 108%; letter-spacing: -.01em; }
.c-act a { background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.c-act a:hover { background-size: 100% 1px; background-position: 0 100%; }
.c-act__k { font-family: var(--f-mono); font-size: var(--t-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-3); }
.c-act li:last-child a { font-size: clamp(13px, 1vw, 17px); font-family: var(--f-mono); letter-spacing: .02em; }

.c-cr { grid-column: 1 / -1; grid-row: 5; justify-self: start; max-width: calc(50vw - var(--gut) - 170px); font-family: var(--f-mono); font-size: var(--t-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-3); }
.c-cr span { white-space: nowrap; }
.c-cr span + span::before { content: "· "; }

.cam__veil--close, .sc--close .bg__veil {
  background:
    radial-gradient(120% 90% at 50% 46%, rgba(14, 10, 12, 0) 38%, rgba(14, 10, 12, .5) 100%),
    linear-gradient(180deg, rgba(14, 10, 12, .4) 0%, rgba(14, 10, 12, .12) 30%, rgba(14, 10, 12, .1) 56%, rgba(14, 10, 12, .55) 100%);
}
.sc--close .bg img { filter: brightness(.7) saturate(1.12); transform: scale(1.04); }

/* ---------- footer ---------- */
/* the outlined 42 runs the full width behind the footer, the way Jesko's "Global" does */
.foot {
  position: relative; z-index: 1; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--bone-3);
  min-height: calc(var(--f42) * .74 + 40px); padding: calc(var(--f42) * .3) var(--gut) calc(env(safe-area-inset-bottom, 0px) + 120px);
  --f42: calc((100vw - var(--gut) * 2) * .705);
}
.foot__42 {
  position: absolute; z-index: -1; left: calc(var(--gut) - .045em); top: 0; margin: 0;
  font-size: var(--f42); font-weight: 640; font-stretch: 125%; line-height: .78; letter-spacing: -.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: max(1.5px, .0032em) rgba(244, 238, 230, .14); user-select: none; pointer-events: none;
}
.foot__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px 60px; font-size: 12px; line-height: 1.6; font-stretch: 108%; }
.foot__by { font-size: clamp(15px, 1.15vw, 19px); color: var(--bone-2); line-height: 1.4; }
.foot__by .mark { color: var(--bone); }
.foot__by a { margin-left: .4em; color: var(--dusk); text-decoration: none; border-bottom: 1px solid currentColor; }
.foot__cr .cap__k { color: var(--bone-2); margin-bottom: 10px; }
.foot__cr ul { list-style: none; margin: 0 0 10px; padding: 0; }
.foot__cr li { padding: 3px 0; }
.foot a { color: var(--bone-2); }
.foot__demo { grid-column: 2; max-width: 70ch; }

@media (max-width: 860px) {
  .sc--close { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto auto; row-gap: 0; }
  .c-hl__b { justify-self: start; text-align: left; }
  .c-steps { grid-column: 1; grid-row: 3; width: auto; margin: 48px 0 24px; align-self: start; }
  .c-act { grid-column: 1; grid-row: 4; justify-self: start; text-align: left; margin: 0 0 30px; }
  .c-act a { background-position: 0 100%; }
  .c-cr { grid-row: 5; margin-bottom: 80px; max-width: none; }
  .c-cr span { display: block; }
  .c-cr span + span::before { content: none; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .foot__demo { grid-column: 1; }
  .c-act li:last-child a { word-break: break-all; }
}
