/*
  ============================================================================
  HOMEPAGE ONLY: structure for the homepage sections
  ============================================================================
  Linked from index.html only; the case-study pages never load it. The art direction (type,
  colour, grain, layout of each chapter) is css/atelier.css, linked last.

  Sections (markup in index.html, behaviour in js/modules/editorial.js, motion in motion.js):
    .statement   the prologue under the hero
    .interlude   the dark moment between the work and the person
    .about       03 About: the liner notes
    .footnotes   the fun facts, a footnote to About
  (Side A lives in css/tracklist.css, Selected work in css/work-archive.css, the footer in
  css/footer.css.)
*/

/* the page lifts away from the footer underneath (footer.js): <main> is opaque, while <body>
   stays see-through (its background would paint over the footer) */
body[data-page='home'] {
  background: transparent;
}

body[data-page='home'] main {
  background: var(--surface);
}

/* ---------- the corner name over the dark chapters ---------- */
.sticky-name.is-over-dark {
  color: var(--cream);
}

/* the logo stays in the top-left corner for the whole page, over the footer too (fixed, rather
   than sticky inside <main>, which would release it where the footer is revealed) */
body[data-page='home'] .sticky-name {
  position: fixed;
  left: 0;
  right: 0;
  margin-bottom: 0;
  transition: color 0.35s var(--ease-out);
}

/* ---------- shared: a small dot between words in a label ---------- */
.dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 0.9em 0.2em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.7;
}

/* ---------- the sections: positioning only (colour and type: atelier.css) ---------- */
.statement,
.interlude,
.about,
.footnotes {
  position: relative;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols-desktop), 1fr);
  column-gap: var(--gutter);
}

/* the portrait: taller than its frame, so the photo can drift inside it (editorial.js) */
.about__frame {
  position: relative;
  display: block;
  overflow: hidden;
}

.about__drift {
  position: absolute;
  left: 0;
  right: 0;
  top: -8%;
  bottom: -8%;
}

.about__drift img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__fact {
  position: relative;
}

.about__fact > .rule {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
