/* Home vi, Editorial & Methodology: an archive desk after the "Repository of Remnants" reference.
   The seven methods are paper things: a library card, a manila folder, a receipt, photo prints and
   postcards made from Ella's own photographs. Choosing one lifts it large; a solid card with a blurb,
   a link pill and a round close sits beside it. No rules or borders anywhere.
   Driven by js/motion/rep.js. */

.rep {
  margin-top: clamp(28px, 4vw, 52px);
  background: #151515;
  border-radius: 6px;
  padding: clamp(28px, 4.4vw, 64px) clamp(20px, 4vw, 56px) 0;
  overflow: hidden;
}

/* Head: light title, two short columns, the process on the right */
.rep__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: clamp(20px, 3.4vw, 56px);
  align-items: end;
}
.rep .rep__title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1;
}
.rep__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.rep__cols p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cloth-70);
}
.rep__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
}
.rep__meta-k {
  font-style: italic;
  color: var(--cloth-70);
  margin-bottom: 6px;
}
.rep__hint {
  display: none;
}

/* The desk: sized in container units so the arrangement scales as one picture; it runs off the bottom */
.rep__desk {
  position: relative;
  container-type: inline-size;
  margin-top: clamp(32px, 4.6vw, 64px);
  aspect-ratio: 100 / 46;
}
.ty {
  font-family: "Courier Prime", "Courier New", ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: .01em;
}
.mx {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1cqw);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  text-align: left;
  color: #1A1A1A;
  background: none;
  cursor: pointer;
  transform: rotate(var(--r));
  transform-origin: 50% 50%;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, filter .45s ease;
  filter: drop-shadow(0 1.6cqw 2.2cqw rgba(0, 0, 0, .55)) drop-shadow(0 .25cqw .5cqw rgba(0, 0, 0, .35));
  z-index: 1;
}
.mx:hover {
  transform: rotate(var(--r)) translateY(-.7cqw);
}
.mx:focus-visible {
  outline: none;
  filter: brightness(1.12);
}
.mx i {
  font-style: italic;
}

/* Library card: pale blue, typed in blue and black, a rubber stamp */
.mx--lib {
  aspect-ratio: 5 / 3;
  background: #BFDCEA;
  padding: 1.4cqw 1.6cqw;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: .8cqw 1.4cqw;
}
.ty--blue {
  color: #2B4FA8;
}
.mx--lib .ty--blue:first-child {
  grid-column: 1 / -1;
  font-size: .85cqw;
  line-height: 1.35;
  text-transform: uppercase;
}
.mx__lib-t {
  align-self: center;
  font-size: 1.9cqw;
  line-height: 1.05;
  text-transform: uppercase;
}
.mx__lib-s {
  grid-column: 1;
  font-size: .8cqw;
  line-height: 1.4;
}
.mx__stamp {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: end;
  justify-self: end;
  padding: .45cqw .8cqw;
  background: rgba(168, 43, 31, .14);
  color: #A82B1F;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: .85cqw;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

/* Manila folder with a tab and the EV mark as an embossed seal */
.mx--folder {
  aspect-ratio: 4 / 3.3;
  background: #E9D6A6;
  padding: 2.4cqw 2cqw 2cqw;
  display: flex;
  flex-direction: column;
  gap: 1.4cqw;
}
.mx--folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1.7cqw;
  width: 38%;
  height: 1.8cqw;
  background: #E9D6A6;
  border-radius: .6cqw .6cqw 0 0;
}
.mx__fold-t {
  font-size: 1.15cqw;
  line-height: 1.4;
  text-transform: uppercase;
}
.mx__fold-s {
  font-size: .95cqw;
  line-height: 1.6;
  color: #3A3326;
}
.mx__seal {
  position: absolute;
  right: 2cqw;
  bottom: 2cqw;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .35), rgba(0, 0, 0, .06) 70%);
  box-shadow: inset 0 0 0 .5cqw rgba(110, 90, 40, .12);
}
.mx__seal img {
  width: 58%;
  opacity: .5;
  mix-blend-mode: multiply;
}

/* Receipt: thermal paper, typed, torn zig-zag ends */
.mx--receipt {
  aspect-ratio: 1 / 2.5;
}
.mx__paper {
  position: absolute;
  inset: 0;
  background: #F7F5EF;
  padding: 2cqw 1.2cqw;
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  clip-path: polygon(0 1%, 4% 0, 8% 1%, 12% 0, 16% 1%, 20% 0, 24% 1%, 28% 0, 32% 1%, 36% 0, 40% 1%, 44% 0, 48% 1%, 52% 0, 56% 1%, 60% 0, 64% 1%, 68% 0, 72% 1%, 76% 0, 80% 1%, 84% 0, 88% 1%, 92% 0, 96% 1%, 100% 0, 100% 100%, 96% 99%, 92% 100%, 88% 99%, 84% 100%, 80% 99%, 76% 100%, 72% 99%, 68% 100%, 64% 99%, 60% 100%, 56% 99%, 52% 100%, 48% 99%, 44% 100%, 40% 99%, 36% 100%, 32% 99%, 28% 100%, 24% 99%, 20% 100%, 16% 99%, 12% 100%, 8% 99%, 4% 100%, 0 99%);
}
.mx__rc-h {
  font-size: 1.15cqw;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}
.mx__rc-sm {
  font-size: .78cqw;
  line-height: 1.45;
  text-align: center;
  color: #4A4A4A;
}
.mx__rc-row {
  display: flex;
  justify-content: space-between;
  font-size: .85cqw;
  text-transform: uppercase;
}
.mx__rc-tot {
  margin-top: .8cqw;
  font-size: 1cqw;
}

/* Photo print: white border, caption in the margin */
.mx--print {
  aspect-ratio: 3 / 4.2;
  background: #FBFAF6;
  padding: .9cqw .9cqw 3.2cqw;
  display: flex;
}
.mx--print img,
.mx--post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mx__cap {
  position: absolute;
  left: 1cqw;
  right: 1cqw;
  bottom: .9cqw;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15cqw;
  line-height: 1.2;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Postcard: full-bleed photograph, title printed on it */
.mx--post {
  aspect-ratio: 3 / 2;
  background: #FBFAF6;
  border-radius: .35cqw;
  overflow: hidden;
}
.mx__post-t {
  position: absolute;
  left: 1.4cqw;
  bottom: 1.1cqw;
  font-family: var(--display);
  font-size: 2.1cqw;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

/* Chosen: lifts large and straight, everything else recedes */
.rep.has-pick .mx {
  opacity: .38;
  filter: drop-shadow(0 1.6cqw 2.2cqw rgba(0, 0, 0, .55)) brightness(.8);
}
.rep.has-pick .mx.is-on {
  opacity: 1;
  z-index: 20;
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(0deg) scale(var(--s, 1.5));
  filter: drop-shadow(0 2.6cqw 3.6cqw rgba(0, 0, 0, .7)) drop-shadow(0 .4cqw .8cqw rgba(0, 0, 0, .4));
}

/* The pop-out: a small black card, Newsreader only, beside the chosen element */
.rep__pop {
  position: absolute;
  z-index: 30;
  width: 230px;
  box-sizing: border-box;
  padding: 18px 18px 16px;
  background: #000000;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease .15s, transform .35s ease .15s;
}
.rep__pop[hidden] {
  display: none;
}
.rep__pop.is-in {
  opacity: 1;
  transform: none;
}
.rep__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rep__card-n {
  order: -1;
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, .55);
}
.rep__card-t {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  color: #FFFFFF;
}
.rep__card-d {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}
.rep__acts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.rep__btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  background: #FFFFFF;
  color: #000000;
  font-size: 13.5px;
  text-decoration: none;
}
.rep__btn svg {
  display: none;
}
.rep__btn:hover {
  background: #E6E3DE;
}
.rep .rep__x {
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.rep .rep__x:hover {
  color: #FFFFFF;
}

/* Narrow screens: a two-column tray, the pop-out sits below it */
@media (max-width: 760px) {
  .rep {
    padding-bottom: 24px;
  }
  .rep__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .rep__cols {
    grid-template-columns: 1fr;
  }
  .rep__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 14px;
  }
  .rep__meta-k {
    width: 100%;
  }
  .rep__desk {
    aspect-ratio: auto;
    container-type: normal;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
    padding-top: 12px;
  }
  .mx {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: rotate(calc(var(--r) / 2));
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5));
  }
  .mx:hover {
    transform: rotate(calc(var(--r) / 2));
  }
  .rep.has-pick .mx.is-on {
    transform: none;
  }
  .mx--lib { padding: 10px 12px; gap: 6px 10px; }
  .mx--lib .ty--blue:first-child, .mx__lib-s, .mx__stamp { font-size: 8px; }
  .mx__lib-t { font-size: 13px; }
  .mx--folder { padding: 14px 12px; gap: 8px; margin-top: 12px; }
  .mx--folder::before { top: -12px; height: 13px; }
  .mx__fold-t { font-size: 11px; }
  .mx__fold-s { font-size: 9px; }
  .mx__seal { width: 44px; height: 44px; right: 10px; bottom: 10px; }
  .mx--receipt { aspect-ratio: 1 / 2.1; }
  .mx__paper { padding: 14px 10px; gap: 6px; }
  .mx__rc-h { font-size: 11px; }
  .mx__rc-sm { font-size: 8px; }
  .mx__rc-row { font-size: 9px; }
  .mx__rc-tot { font-size: 10px; }
  .mx--print { padding: 7px 7px 30px; }
  .mx__cap { left: 7px; right: 7px; bottom: 7px; font-size: 11px; line-height: 1.2; }
  .mx__post-t { left: 10px; bottom: 8px; font-size: 15px; }
  .rep__pop {
    position: relative;
    left: auto !important;
    top: auto !important;
    grid-column: 1 / -1;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mx, .rep__pop {
    transition: none;
  }
}

/* A print with no photograph yet: a dark exposure inside the white border */
.mx__blank {
  display: block;
  width: 100%;
  height: 100%;
  background: #141414;
}

/* The Idea and the Methodology desk are one continuous section: two frames, one flow */
#s01 {
  padding-bottom: clamp(28px, 3.4vw, 48px);
}
#s06 {
  padding-top: 0;
}
#s06 .rep {
  margin-top: 0;
}

/* The hero of the desk: What We Put Into the World, the piece to read first, as a large postcard on top */
.mx--hero {
  z-index: 5;
}
.mx--hero img {
  object-position: 50% 62%;
}
.mx--hero .mx__post-t {
  left: 2.4cqw;
  bottom: 2cqw;
  font-size: 4.2cqw;
  font-weight: 300;
}
.mx__hero-k {
  position: absolute;
  left: 2.4cqw;
  top: 2cqw;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35cqw;
  color: #FFFFFF;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
@media (max-width: 760px) {
  .mx--hero { grid-column: 1 / -1; order: -1; }
  .mx--hero .mx__post-t { left: 14px; bottom: 12px; font-size: 26px; }
  .mx__hero-k { left: 14px; top: 12px; font-size: 13px; }
}

/* A second edition of the same piece, offered beside the main link */
.rep__btn--alt {
  background: rgba(255, 255, 255, .12);
  color: #FFFFFF;
}
.rep__btn--alt:hover {
  background: rgba(255, 255, 255, .22);
}
.rep__btn--alt[hidden] {
  display: none;
}

/* Realistic paper: every object is rendered as the physical thing, with paper grain, light from one
   source at the top left, and the shadows a real print on a desk has */
.mx {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mx--lib::after,
.mx--print::after,
.mx--post::after,
.mx__paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px 180px;
  mix-blend-mode: multiply;
  opacity: .22;
  z-index: 3;
}

/* Sticky note: stuck along the top, the bottom edge lifting off the desk */
.mx--lib {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(180deg, rgba(40, 70, 100, .10) 0, rgba(40, 70, 100, 0) 15%),
    linear-gradient(160deg, rgba(255, 255, 255, .28) 0, rgba(255, 255, 255, 0) 45%),
    linear-gradient(0deg, rgba(20, 40, 60, .12) 0, rgba(20, 40, 60, 0) 18%),
    #BFDCEA;
  padding: 2cqw 1.8cqw 1.8cqw;
  border-radius: 0 0 .3cqw .3cqw;
  filter: drop-shadow(0 1.4cqw 1.3cqw rgba(0, 0, 0, .5)) drop-shadow(0 .15cqw .2cqw rgba(0, 0, 0, .35));
  transform: rotate(var(--r)) perspective(60cqw) rotateX(4deg);
}
.mx--lib:hover {
  transform: rotate(var(--r)) perspective(60cqw) rotateX(4deg) translateY(-.5cqw);
}

/* Thermal receipt: curled edges, faded print, the text set apart in its rows */
.mx__paper {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .07) 0, rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, 0) 84%, rgba(0, 0, 0, .09) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 30%),
    #F4F2EB;
}
.mx__paper .ty {
  color: #2E2E2E;
  opacity: .88;
}
.mx__rc-row {
  gap: .8cqw;
}

/* Polaroid: square photo, deep bottom margin, a little sheen across the film */
.mx--polaroid {
  aspect-ratio: 3.5 / 4.25;
  padding: 1cqw 1cqw 3.8cqw;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, 0) 40%),
    #F3F1EA;
  border-radius: .2cqw;
}
.mx--polaroid img {
  aspect-ratio: 1 / 1;
  height: auto;
}
.mx--polaroid::before,
.mx--glossy::before {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, .18) 0, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .08) 100%);
}
.mx--polaroid::before { left: 1cqw; right: 1cqw; top: 1cqw; aspect-ratio: 1 / 1; }

/* Glossy photo print: a thin white border, the sheen of the coating */
.mx--glossy {
  aspect-ratio: 2 / 2.85;
  padding: .55cqw .55cqw 2.9cqw;
  background: #FAFAF7;
  border-radius: .15cqw;
}
.mx--glossy::before { left: .55cqw; right: .55cqw; top: .55cqw; bottom: 2.9cqw; }

/* Postcard: matte card stock, softly rounded corners, ink printed into the photograph */
.mx--post {
  border-radius: .45cqw;
}
.mx--post::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12) 0, rgba(255, 255, 255, 0) 35%),
    radial-gradient(120% 100% at 50% 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .22) 100%);
}
.mx__post-t {
  z-index: 4;
  text-shadow: 0 0 .1cqw rgba(0, 0, 0, .35);
  opacity: .96;
}
.mx__cap { z-index: 4; }

/* Realism, second pass: paper with surface relief lit from the top left, lifted corners, creases,
   recessed photographs and coating gloss */
.mx {
  --relief: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045 .6' numOctaves='4' seed='3' result='n'/%3E%3CfeDiffuseLighting in='n' surfaceScale='1.6' lighting-color='%23fff'%3E%3CfeDistantLight azimuth='225' elevation='58'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  filter: drop-shadow(0 .12cqw .12cqw rgba(0, 0, 0, .55)) drop-shadow(0 1.1cqw 1.4cqw rgba(0, 0, 0, .45)) drop-shadow(0 2.6cqw 3.6cqw rgba(0, 0, 0, .35));
}
.mx--lib::after,
.mx--print::after,
.mx__paper::after {
  background-image: var(--relief), var(--grain);
  background-size: 240px 240px, 180px 180px;
  opacity: .32;
}

/* Sticky note: the bottom right corner curls up off the desk and catches the light */
.mx--lib {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 22%),
    linear-gradient(315deg, rgba(0, 0, 0, .18) 0, rgba(0, 0, 0, 0) 9%),
    linear-gradient(180deg, rgba(40, 70, 100, .14) 0, rgba(40, 70, 100, .04) 13%, rgba(40, 70, 100, 0) 16%),
    linear-gradient(160deg, rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, 0) 50%),
    #BCD9E8;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 93% 100%, 0 100%);
  transform: rotate(var(--r)) perspective(60cqw) rotateX(5deg) rotateY(-3deg);
}

/* Polaroid: the photograph sits recessed in the thick card, under a matte film */
.mx--polaroid::before {
  box-shadow: inset 0 .12cqw .25cqw rgba(0, 0, 0, .55), inset 0 0 1.2cqw rgba(0, 0, 0, .25);
}
.mx--polaroid {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .05) 100%),
    #F1EEE6;
  transform: rotate(var(--r)) perspective(70cqw) rotateY(4deg);
}

/* Glossy print: a bright streak of light across the coating, a slight bow in the paper */
.mx--glossy::before {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .28) 42%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 .8cqw rgba(0, 0, 0, .35);
}
.mx--glossy {
  transform: rotate(var(--r)) perspective(60cqw) rotateX(-4deg);
}

/* Thermal receipt: folded twice to fit a pocket, the creases still in the paper */
.mx__paper {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 32.6%, rgba(0, 0, 0, .1) 33.3%, rgba(255, 255, 255, .6) 33.8%, rgba(0, 0, 0, 0) 35.5%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 65.6%, rgba(0, 0, 0, .09) 66.3%, rgba(255, 255, 255, .55) 66.8%, rgba(0, 0, 0, 0) 68.5%),
    linear-gradient(90deg, rgba(0, 0, 0, .1) 0, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 82%, rgba(0, 0, 0, .12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 30%),
    #F3F1EA;
}
.mx--receipt {
  transform: rotate(var(--r)) perspective(50cqw) rotateY(-6deg);
}

/* Postcards: printed on card stock with a narrow white border, the photograph inside it */
.mx--post {
  padding: .5cqw;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 40%),
    #F4F2EC;
  border-radius: .3cqw;
}
.mx--post img {
  border-radius: .1cqw;
}
.mx--post::after {
  background-image: var(--relief), var(--grain);
  background-size: 240px 240px, 180px 180px;
  opacity: .22;
}
.mx--post::before {
  inset: .5cqw;
  border-radius: .1cqw;
  box-shadow: inset 0 0 1.6cqw rgba(0, 0, 0, .3);
}
.mx__post-t {
  left: 1.9cqw;
  bottom: 1.6cqw;
}
.mx--hero .mx__post-t {
  left: 2.9cqw;
  bottom: 2.5cqw;
}
.mx--hero {
  transform: rotate(var(--r)) perspective(90cqw) rotateX(3deg);
}
.mx--hero .mx__post-t { font-size: 3.3cqw; }

/* The editorial as magazine covers: each piece shown by its own photograph, the first one largest.
   No paper effects; a flat veil keeps the titles legible. */
.cov {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(200px, 19vw, 300px);
  gap: 12px;
  margin-top: clamp(32px, 4.6vw, 64px);
  padding-bottom: clamp(28px, 4vw, 56px);
}
.cov__c {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
  overflow: hidden;
  background: #101010 center / cover no-repeat;
  color: #fff;
  text-decoration: none;
}
.cov__c::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .3;
  transition: opacity .4s ease;
}
.cov__c:hover::before,
.cov__c:focus-visible::before {
  opacity: .12;
}
.cov__c:focus-visible {
  outline: none;
}
.cov__c > * {
  position: relative;
}
.cov__c--hero {
  grid-row: span 2;
}
.cov__c--type {
  background: #151515;
}
.cov__k {
  margin-bottom: 6px;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  opacity: .82;
}
.cov__t {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.08;
}
.cov__c--hero .cov__t {
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1;
}
@media (max-width: 760px) {
  .cov { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 52vw; }
  .cov__c--hero { grid-column: 1 / -1; grid-row: auto; }
}

/* Desk, 24 Oct: four editorials, the personal brand chart and the So You Want To covers fanned in a stack.
   Pieces overlap a little and the desk is tall enough that nothing is cut at the bottom. */
.rep__desk { aspect-ratio: 100 / 50; }
a.mx { display: block; text-decoration: none; }
a.mx--lib { display: grid; }
a.mx--print { display: flex; }
.mx--chart { aspect-ratio: 9 / 16.6; padding: .45cqw .45cqw 1.2cqw; }
.mx--chart img { object-fit: cover; object-position: top; }
.mx--stack { aspect-ratio: 34 / 22; filter: none; }
.mx--stack img {
  position: absolute;
  top: calc(var(--i) * .7cqw);
  left: calc(var(--i) * 5.2cqw);
  width: 13.5cqw;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: .25cqw;
  transform: rotate(calc((var(--i) - 2) * 2.5deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 .6cqw 1cqw rgba(0, 0, 0, .45));
}
.mx--stack:hover img,
.mx--stack:focus-visible img {
  transform: rotate(calc((var(--i) - 2) * 5deg)) translateY(calc(var(--i) * -.4cqw));
}
@media (max-width: 760px) {
  .mx--chart { padding: 4px 4px 10px; }
  .mx--stack { grid-column: 1 / -1; aspect-ratio: 2 / 1.25; }
  .mx--stack img { width: 46%; top: calc(var(--i) * 6px); left: calc(var(--i) * 12%); }
}

/* 24 Oct: no fake paper. Textures and paper tints are off; Thinking for Yourself is a magazine cover. */
.mx--lib::after,
.mx--print::after,
.mx--post::after,
.mx__paper::after { content: none; }
.mx--polaroid { background: #F4F4F2; }
.mx--mag {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: .15cqw;
  background: #111;
  color: #fff;
}
.mx--mag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* the spine fold and a soft gloss, as on a printed cover */
.mx--mag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .38) 0, rgba(255, 255, 255, .14) 1.2%, rgba(0, 0, 0, 0) 4%),
    linear-gradient(115deg, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .45) 100%);
}
.mx__mag-m,
.mx__mag-t {
  position: absolute;
  left: 1.2cqw;
  right: 1.2cqw;
  z-index: 3;
  font-family: var(--display);
  text-align: center;
}
.mx__mag-m {
  top: 1.1cqw;
  font-size: 1.85cqw;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1;
}
.mx__mag-t {
  bottom: 1.4cqw;
  font-size: 1.9cqw;
  font-weight: 300;
  line-height: 1.05;
}
@media (max-width: 760px) {
  .mx__mag-m { top: 10px; font-size: 16px; }
  .mx__mag-t { bottom: 10px; font-size: 17px; }
}
/* The chart sits on the desk as itself, no paper frame */
.mx--chart { padding: 0; background: none; border-radius: .2cqw; overflow: hidden; }
@media (max-width: 760px) { .mx--chart { padding: 0; } }
.rep__btn { white-space: nowrap; }

/* Desk, second pass (24 Oct): two calm rows, one treatment for every print, corners tucked under neighbours */
.rep__desk { aspect-ratio: 100 / 50; }
.mx--post { padding: 0; background: #111; border-radius: .2cqw; }
.mx--post img { position: absolute; inset: 0; }
.mx--post::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .5) 100%);
  pointer-events: none;
}
.mx--post .mx__post-t { z-index: 2; left: 1.4cqw; bottom: 1.1cqw; font-size: 1.6cqw; line-height: 1.05; }
.mx--hero .mx__post-t { left: 1.8cqw; bottom: 1.5cqw; font-size: 2.5cqw; }
.mx__mag-m { font-size: 1.45cqw; top: 1.2cqw; }
.mx__mag-t { font-size: 1.75cqw; bottom: 1.3cqw; }
.mx--chart { filter: drop-shadow(0 .8cqw 1.6cqw rgba(0, 0, 0, .7)); }
/* So You Want To as a hand of cards, Personal Brand in front */
.mx--stack { aspect-ratio: 36 / 26; }
.mx--stack img {
  left: 50%;
  top: 6%;
  width: 12.5cqw;
  margin-left: -6.25cqw;
  transform-origin: 50% 150%;
  transform: rotate(calc((var(--i) - 2) * 9deg));
}
.mx--stack:hover img,
.mx--stack:focus-visible img {
  transform: rotate(calc((var(--i) - 2) * 12deg)) translateY(-.6cqw);
}
@media (max-width: 760px) {
  .mx--post .mx__post-t { left: 10px; bottom: 8px; font-size: 15px; }
  .mx--hero .mx__post-t { font-size: 24px; }
  .mx--stack { aspect-ratio: 1.6 / 1; }
  .mx--stack img { left: 50%; top: 8%; width: 34%; margin-left: -17%; }
}
/* Thinking for Yourself cover: the title alone, large, set like a masthead */
.mx__mag-t { bottom: 1.6cqw; font-size: 2.9cqw; line-height: .98; }
@media (max-width: 760px) { .mx__mag-t { font-size: 26px; bottom: 12px; } }

/* Photo pieces as postcards: a white border around the print */
.mx--post { background: #F3F1EC; }
.mx--post img { inset: .75cqw; width: calc(100% - 1.5cqw); height: calc(100% - 1.5cqw); border-radius: .1cqw; }
.mx--post::before { inset: .75cqw; }
.mx--post .mx__post-t { left: 2cqw; bottom: 1.7cqw; }
.mx--hero .mx__post-t { left: 2.4cqw; bottom: 2cqw; }
.mx__cap { font-size: 1.15cqw; line-height: 1.15; }
@media (max-width: 760px) {
  .mx--post img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
  .mx--post::before { inset: 6px; }
  .mx__cap { font-size: 11px; }
}

/* Polaroid caption: wrap onto two lines inside the deeper bottom margin instead of cutting off */
.mx--polaroid { padding-bottom: 4.6cqw; aspect-ratio: auto; }
.mx--polaroid .mx__cap {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 1.05cqw;
  line-height: 1.15;
  bottom: .8cqw;
}

/* Stacking follows the markup order on the desk */
.mx--hero { z-index: 3; }
.mx--mag, .mx--polaroid { z-index: 4; }

/* Phones: the desk becomes an even grid of small covers, two across, upright and never overlapping */
@media (max-width: 760px) {
  .rep__desk {
    aspect-ratio: auto !important;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .rep__desk .mx {
    grid-column: auto !important;
    order: 0;
    width: auto !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    transform: none !important;
    rotate: none !important;
  }
  .rep__desk .mx--hero { order: -1; }
  .rep__desk .mx--post .mx__post-t,
  .rep__desk .mx--hero .mx__post-t { font-size: 15px; left: 10px; bottom: 8px; }
  .rep__desk .mx__mag-t { font-size: 15px; }
  .rep__desk .mx--stack img { width: 58%; left: 21%; top: 22%; margin-left: 0; }
}

/* Phones and tablets: no "Drag the cards" hint under the swipe row */
@media (max-width: 1024px) {
  .deck__hint { display: none; }
}

/* The polaroid's handwritten caption stays legible: never smaller than 13px, darker ink */
.rep__desk .mx__cap {
  font-size: max(13px, 1.3cqw);
  line-height: 1.2;
  color: #1a1a1a;
}
@media (max-width: 760px) {
  .rep__desk .mx__cap {
    font-size: 12.5px;
    white-space: normal;
  }
}
@media (max-width: 760px) {
  .rep__desk .mx--polaroid img { height: calc(100% - 44px) !important; object-fit: cover; }
  .rep__desk .mx--polaroid .mx__cap { bottom: 7px; }
}

/* Phones and tablets: a tapped cover's card opens in the middle of the screen over a dimmed page */
@media (max-width: 1024px) {
  .rep__desk .rep__pop {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    z-index: 1000;
    width: min(88vw, 380px);
    transform: translate(-50%, calc(-50% + 8px));
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .66);
  }
  .rep__desk .rep__pop.is-in {
    transform: translate(-50%, -50%);
  }
}

/* Tablets: the headline across the top, the two paragraphs side by side underneath */
@media (min-width: 761px) and (max-width: 1024px) {
  .rep__head { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .rep__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Postcards, third pass (7 Nov): the photograph framed in card stock, the title printed underneath on the
   paper instead of over the picture, five cards in two even rows */
.rep__desk .mx--post {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  padding: .8cqw .8cqw 0;
  background: #F4F2EC;
  border-radius: .25cqw;
}
.rep__desk .mx--post img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: .1cqw;
}
.rep__desk .mx--post::before {
  inset: .8cqw .8cqw auto;
  aspect-ratio: 3 / 2;
  background: none;
  box-shadow: inset 0 0 .5cqw rgba(0, 0, 0, .22);
}
.rep__desk .mx--post .mx__post-t {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 4;
  display: block;
  padding: 1.2cqw .25cqw 1.3cqw;
  font-size: 1.55cqw;
  line-height: 1.1;
  color: #1A1A1A;
  text-shadow: none;
  opacity: 1;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .rep__desk .mx--post { aspect-ratio: auto !important; padding: 6px 6px 0; }
  .rep__desk .mx--post::before { inset: 6px 6px auto; }
  .rep__desk .mx--post .mx__post-t { left: auto; bottom: auto; padding: 9px 2px 10px; font-size: 14px; white-space: normal; }
}

/* Desk layout (7 Nov): the newest piece as a large postcard on the left, the other four smaller beside it
   in two rows; on phones the large one runs across both columns */
.rep__desk .mx--post .mx__post-t { font-size: 1.4cqw; }
.rep__desk .mx--lead .mx__post-t { font-size: 2.1cqw; padding: 1.5cqw .3cqw 1.6cqw; }
.rep__desk .mx--lead { z-index: 2; }
@media (max-width: 760px) {
  .rep__desk .mx.mx--lead { grid-column: 1 / -1 !important; order: -1; }
  .rep__desk .mx--post .mx__post-t { font-size: 14px; }
  .rep__desk .mx--lead .mx__post-t { font-size: 18px; padding: 10px 2px 12px; }
}
