/* SLANT · the closing band + the footer (part 8 · Direction B · Last word). Shared by every next/ page:
   next/partials/band.html (home copy), next/partials/band-conik.html (Conik copy, data-dock-away), next/partials/footer.html.
   Builds on kit.css. The band is the page's last word on the slant; it lifts away to uncover the footer, which is pinned
   to the bottom of the window behind the page (position: sticky; bottom: 0) while assets/js/footer.js says it fits.
   Pages put the band straight after </main>, then the footer. */

/* ---------- the reveal: main and the band ride above the pinned footer ---------- */
html.foot-reveal main { position: relative; z-index: 1; background: var(--black); }
html.foot-reveal .site-footer[data-foot] { position: sticky; bottom: 0; z-index: 0; }

/* The section before the band keeps its last line clear of the band's top slant (the kit's .edge-before, applied for the page). */
main:has(+ .band) > :last-child:not(.edge-before) { padding-bottom: calc(var(--edge) + var(--sec) * .5); }

/* ---------- the band: amber, cut at 8° top and bottom ---------- */
.band { --bg: var(--amber); --ink: var(--black); --ink-2: rgba(11, 11, 13, .74); --line: rgba(11, 11, 13, .18); --focus: var(--black);
  position: relative; z-index: 1; overflow: hidden; background: var(--amber); color: var(--black);
  margin-top: calc(-1 * var(--edge));
  padding-block: calc(var(--edge) + var(--sec) * .5) calc(var(--edge) + var(--sec) * .4);
  clip-path: polygon(0 var(--edge), 100% 0, 100% 100%, 0 calc(100% - var(--edge))); }
.band .container { display: grid; gap: var(--s8); }
.band .eyebrow { color: var(--black); }
.band .eyebrow::before { background: var(--black); }
.band .display { font-size: clamp(2.75rem, 1.4rem + 5vw, 5.75rem); max-width: 11ch; }
.band .lead { color: var(--black); opacity: .8; max-width: 36ch; }
.band .hl { background: var(--black); color: var(--amber); }
.js .band .hl--land { background: none; color: var(--black); }
.js .band .hl--land::before { background: var(--black); }
.js .band .hl--land.is-in { color: var(--amber); }
.band .btn--ghost { background: rgba(11, 11, 13, .1); color: var(--black); }
.band .btn--ghost:hover { background: rgba(11, 11, 13, .18); }
.band .btn--ghost:focus-visible { box-shadow: inset 0 0 0 2px var(--amber), inset 0 0 0 4px var(--black); }
.band-copy { display: grid; gap: var(--s5); align-content: center; }
.band-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s3); }
@media (max-width: 479px) { .band-actions .btn { width: 100%; justify-content: center; } }
/* the unit facing you, the last image on the page: the classic-09 turntable front frame on amber */
.band-fig { position: relative; width: min(72%, 300px); margin: 0 auto; aspect-ratio: 4 / 5; }
.band-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: drop-shadow(0 24px 28px rgba(60, 40, 0, .35)); }
.band-fig .cap { position: absolute; left: 0; bottom: 0; color: var(--black); }
.band-fig .cap::before { background: var(--black); }
.js .band-fig img { transform: translateY(24px); opacity: 0; transition: transform 1.2s var(--ease-expo), opacity 1.2s var(--ease-expo); }
.js .band-fig.is-in img { transform: none; opacity: 1; }
@media (min-width: 1024px) {
  .band { min-height: 84vh; display: grid; align-content: center; }
  .band .container { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s12); align-items: center; }
  .band-fig { width: 100%; max-width: 440px; margin: 0 0 0 auto; }
}

/* ---------- the footer: graphite, compact enough to sit under a phone window, ending in the giant wordmark ---------- */
.site-footer[data-foot] { position: relative; background: var(--graphite); color: var(--bone); padding-top: var(--s10);
  --bg: var(--graphite); --ink: var(--bone); --ink-2: var(--smoke); --line: var(--line-dark); --focus: var(--amber); }
/* graphite behind the band's lower slant, so the cut always opens onto the footer. Drawn only when the band sits straight
   before the footer: the strip then lies inside the band's own bottom padding, under the band (z-index 1), whatever the reveal
   is doing; with no band before it there is no strip, so it can never cover the end of a page. */
.band + .site-footer[data-foot]::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--edge) + 2px); background: var(--graphite); pointer-events: none; }
.site-footer .footer-grid { display: grid; gap: var(--s8) var(--s6); grid-template-columns: 1fr 1fr; }
.site-footer .footer-grid .about { grid-column: 1 / -1; }
.site-footer .footer-grid .about .logo { display: block; height: 20px; width: auto; color: var(--bone); }
.site-footer .footer-grid .about > a { display: inline-flex; align-items: center; min-height: 34px; }
.site-footer .footer-grid .about p { color: var(--ink-2); max-width: 34ch; margin-top: var(--s3); font-size: var(--fs-small); }
.site-footer .fh { font-family: var(--mono); font-weight: 500; font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s2); }
.site-footer .flist { display: grid; }
.site-footer .flist a, .site-footer .footer-bottom a { display: inline-flex; align-items: center; min-height: 34px; color: var(--bone); font-weight: 500; font-size: var(--fs-small); position: relative; }
.site-footer .flist a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform var(--d) var(--ease); }
.site-footer .flist a:hover::after, .site-footer .flist a:focus-visible::after { transform: scaleX(1); }
.site-footer address { font-style: normal; line-height: 1.6; font-size: var(--fs-small); }
.site-footer .footer-bottom { margin-top: var(--s8); padding-block: var(--s4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s6); justify-content: space-between; align-items: baseline; font-size: var(--fs-small); color: var(--ink-2); }
.site-footer .footer-bottom .credit { flex-basis: 100%; }
.site-footer .footer-bottom .credit a { color: var(--ink-2); gap: .45em; }
.site-footer .footer-bottom .credit img { height: 1.1em; width: auto; opacity: .85; transition: opacity var(--d-fast) var(--ease); }
.site-footer .footer-bottom .credit a:hover img, .site-footer .footer-bottom .credit a:focus-visible img { opacity: 1; }
/* the giant wordmark: his logo symbol (#slant-logo), never typeset. It rises the last 46 % of its height as the band lifts;
   --p is the uncovered share of the footer (0 → 1), set once per frame by footer.js. Clipped to its own slot. */
.site-footer .footer-mark { --p: 1; overflow: clip; padding-block: var(--s5); }
.site-footer .footer-mark svg { display: block; width: 100%; height: auto; color: var(--amber); }
html.foot-reveal .site-footer .footer-mark svg { transform: translateY(calc((1 - var(--p)) * 46%)); opacity: calc(.25 + .75 * var(--p)); will-change: transform, opacity; }
@media (min-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .site-footer .footer-grid .about { grid-column: auto; }
  .site-footer .footer-bottom .credit { flex-basis: auto; margin-left: auto; order: 3; }
  .site-footer .footer-mark { padding-block: var(--s8) var(--s6); }
}

/* ---------- reduced motion: the footer sits in flow, nothing eases ---------- */
@media (prefers-reduced-motion: reduce) {
  html.foot-reveal .site-footer[data-foot] { position: relative; }
  html.foot-reveal .site-footer .footer-mark svg { transform: none; opacity: 1; }
  .js .band-fig img { transform: none; opacity: 1; transition: none; }
}

/* 10 Nov (Tarun: the front view "looks a bit awkward"): the band shows the unit side-on, rendered from the live 3D; wide, never cropped */
.band-fig--side { width: 100%; max-width: none; aspect-ratio: auto; margin: 0; }
.band-fig--side picture, .band-fig--side img { display: block; width: 100%; height: auto; object-fit: contain; }
.band-fig--side .cap { position: static; margin-top: var(--s3); }
@media (min-width: 1024px) {
  .band .container:has(.band-fig--side) { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .band-fig--side { max-width: 720px; margin: 0 0 0 auto; }
}

.site-footer .flist--social { margin-top: var(--s3); }
