/* North * — About: full-viewport two-slide deck with Bayer-dither panels.
   Loads only on /about/ — page-scoped overrides (footer) are safe here. */

/* ---------- Deck ---------- */

.slides {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* slides stack; only the active one is visible (visibility also drops the
   hidden slide's link from the tab order) */
.slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.slide.is-active {
  visibility: visible;
}

/* the composition is capped and centered like the site's .stage */
.slide-inner {
  position: relative;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* ---------- Text column ---------- */

.slide-text {
  position: absolute;
  left: calc(25% + 15px);
  top: 50%;
  transform: translateY(-50%);
  width: 339px;
}

.slide-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.slide-copy {
  font-size: 12px;
  line-height: normal;
}

/* multi-paragraph copy — same 12px rhythm as the title→copy gap */
.slide-copy + .slide-copy {
  margin-top: 12px;
}

/* the "Not …" one-liners — dim frame, quoted phrase in full ink */
.copy-not {
  color: var(--ink-dim);
}

.copy-not .q {
  color: var(--ink);
}

.slide-link {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  white-space: nowrap;
}

.slide-link:hover {
  color: #2222ff;
}

/* [enter] — bracketed keyboard affordance, same grammar as [M] Menu /
   [1]-[4] hero-nav; dim so it doesn't compete with the label, no layout
   shift on hover since the link's own hover just recolors the whole line */
.slide-link .key {
  color: var(--ink-dim);
}

.slide-link:hover .key {
  color: #2222ff;
}

/* ---------- Dither panel ---------- */

/* right-anchored like the contact page's picture; shrinks before it can
   collide with the text column on narrow desktops */
.slide-panel {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  max-width: calc(75% - 402px);
  height: 344px;
}

.panel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Slide counter (globe-readout treatment) ---------- */

/* sits just above the overlay footer's block in the bottom-left */
.slide-counter {
  position: fixed;
  left: var(--pad);
  bottom: 98px;
  font-size: 12px;
  color: var(--ink-dim);
  z-index: 10;
  pointer-events: none;
}

.slide-counter .val {
  color: #2222ff;
}

/* ---------- Nav arrows ---------- */

.slide-nav {
  position: fixed;
  right: var(--pad);
  bottom: var(--pad);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slide-arrow {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-weight: inherit;
  font-size: 12px;
  color: var(--ink-dim);
  cursor: pointer;
}

.slide-arrow:hover {
  color: var(--ink);
}

/* clamped deck — the dead-end arrow dims further */
.slide-arrow[aria-disabled="true"],
.slide-arrow[aria-disabled="true"]:hover {
  color: rgba(0, 0, 0, 0.18);
  cursor: default;
}

/* ---------- Footer (page-scoped overrides) ---------- */

/* white full-viewport composition — the overlay footer flips to black text
   and compacts (single legal line) so it reads as bottom-left furniture */
.site-footer.footer-overlay {
  color: var(--ink);
  min-height: 0;
  gap: 6px;
}

.footer-overlay .legal br {
  display: none;
}

.footer-overlay .legal a:hover {
  color: var(--ink-dim);
}

/* ---------- ≤900px ---------- */

@media (max-width: 900px) {
  /* very short screens may scroll within a slide */
  .slide {
    overflow-y: auto;
  }

  .slide-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    height: auto;
    padding: 88px var(--pad) 132px;
  }

  .slide-text {
    position: static;
    transform: none;
    width: auto;
    max-width: 480px;
  }

  .slide-panel {
    /* stays the canvas's positioning context — static would let the
       absolutely-inset canvas escape to the whole slide */
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: 180px;
    margin-top: 32px;
    flex: 0 0 auto;
  }

  /* styles.css flows the overlay footer as a black band on small screens —
     this page has no band, so keep it pinned and transparent */
  .site-footer.footer-overlay {
    position: absolute;
    background: none;
    min-height: 0;
    margin-top: 0;
  }

  /* the pinned footer block (~106px tall) swallows the bottom-right corner
     on phones — lift the arrows onto the counter's line, clear above it */
  .slide-nav {
    bottom: 98px;
  }
}
