/* About: one screen. The square's people, seen at eye level through a sheet of frosted glass that
   fills the whole window; in front of it, the page's label and one paragraph saying what we are.
   Nothing scrolls and nothing follows the pointer but a faint shift of light. */

.about { --late: 0; }
.about .ground { display: none; }             /* the glass is this page's ground */
.about .pane { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; background: #F5F3EE; }
.about .glass { position: absolute; inset: 0; }
.about .glass img, .about .glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.about .glass img { object-fit: cover; object-position: 50% 60%; }
.about .glass canvas { opacity: 0; transition: opacity .9s var(--ease); }
.about .glass canvas.on { opacity: 1; }
.about .glass canvas + canvas { mix-blend-mode: multiply; }
html:not(.js) .about .glass canvas { display: none; }

/* the label stands where every page's label stands (site.css); the words follow close under it */
.about main { display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: start; padding: 0 var(--mr) calc(var(--u) * 1) var(--ml); }
.about .what { max-width: calc(var(--t-lead) * 25); text-align: center; }
.about .passage {
  margin-top: calc(var(--u) * .9);
  font-family: var(--serif); font-size: var(--t-lead); line-height: 1.45; font-weight: 400; letter-spacing: -0.004em;
  color: #2A2622; text-wrap: pretty;
}

/* upright (a phone, a tablet held upright): the people stand in the upper part of the glass, head
   and shoulders clear; the words stand at the foot of the screen, at running-text size. Where the
   figures fade out behind the label and the first lines the glass is frosted a little more (a soft
   band), so no line of text has a figure showing sharply through it */
@media (max-width: 560px), (orientation: portrait) {
  .about main { padding-bottom: calc(var(--u) * .5); }
  .about .what { position: relative; isolation: isolate; align-self: end; }
  .about .what::before {
    content: ''; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%); top: calc(var(--u) * -3); height: calc(var(--u) * 11);
    background: linear-gradient(to bottom, rgba(245, 243, 238, 0), rgba(245, 243, 238, .6) calc(var(--u) * 3), rgba(245, 243, 238, .6) calc(var(--u) * 7), rgba(245, 243, 238, 0));
  }
  .about .foot { text-shadow: none; font-weight: 400; color: rgba(42, 38, 34, .78); }
  .about .passage { margin-top: 0; font-size: var(--t-body); line-height: 1.45; text-wrap: balance; }
  .about .passage + .passage { margin-top: calc(var(--u) * .55); }
  .about .glass img { object-position: 50% 0; }
}
/* a tablet held upright: the same composition, the words a size larger */
@media (orientation: portrait) and (min-width: 561px) {
  .about main { padding-bottom: calc(var(--u) * 1.6); }
  .about .passage { font-size: var(--t-lead); }
  .about .passage + .passage { margin-top: calc(var(--u) * .8); }
}
/* a phone on its side: the words keep to the left, clear of the two in colour */
@media (max-height: 560px) and (orientation: landscape) and (min-width: 561px) {
  .about main { justify-items: start; padding-bottom: 0; }
  .about main > h1.label { text-align: left; }
  .about .what { max-width: 54%; text-align: left; }
  .about .passage { margin-top: calc(var(--u) * .5); font-size: var(--t-body); line-height: 1.4; }
}
/* a small phone on its side: no room for a clear course above the label, so it stands close under the header */
@media (max-height: 380px) and (orientation: landscape) and (min-width: 561px) { .about main > h1.label { margin-top: calc(var(--u) * .2); line-height: 1.2; } .about .passage { margin-top: calc(var(--u) * .3); } }
@media (max-height: 350px) and (orientation: landscape) and (min-width: 561px) { .about .what { max-width: 70%; } }
@media (prefers-reduced-motion: reduce) { .about .glass canvas { transition: none; } }
