/* Melly Labs — Exposé
 * ===================
 *
 * The product's own page. It stands on the products sheet (the grid, the ruled
 * writing, the marker, the frames, the arriving) and adds only what a longer
 * page needs: a statement set large, a label over each part, and the points
 * themselves in two columns, or three for the short ones at the end.
 */

/* The heart beside "for you" is found by its address in start3.css; from two
   folders down the address is longer. */
nav#menu a[href$="for-you.html"] { display: inline-flex; align-items: center; gap: .35em; transition: transform .2s ease; }
nav#menu a[href$="for-you.html"]::after { content: none; }
nav#menu a[href$="for-you.html"]:hover { transform: scale(1.14); }

/* The screen with Exposé on it is in the left half of the photograph. */
.shot-studio img { object-position: 22% center; }

/* A statement, large and centred, with the part that matters marked. */
.stated {
  grid-column: 1 / -1; text-align: center; margin-inline: auto;
  font-size: clamp(1.5rem, 2.6vw, 2.6rem); font-weight: 400;
  line-height: 1.45; letter-spacing: -0.02em;
}
.stated .marker { display: inline-block; background-color: var(--green); padding: 0 .16em; }
body.on-green .stated .marker { background-color: #fff; }
body.on-blue .stated .marker { background-color: #6a6aff; }

/* What the part below is, said quietly over a rule. */
.label {
  grid-column: 2 / span 10;
  border-top: 2px solid currentColor; padding-top: 12px;
  font-size: clamp(13px, 1vw, 15px); font-weight: 300; opacity: .6;
  /* closer to what it introduces than to what came before */
  margin-bottom: clamp(-110px, -8vh, -36px);
}

.points {
  grid-column: 2 / span 10;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 8vw, 150px);
  row-gap: clamp(40px, 7vh, 84px);
}
.points.three { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 70px); }

/* A drawing for each point: one weight of line, square ends, nothing filled in,
   the same hand as the star in the corner. */
.point .ico {
  display: block; width: clamp(34px, 2.9vw, 46px); height: auto; aspect-ratio: 1;
  margin-bottom: clamp(16px, 2.2vh, 26px);
  fill: none; stroke: currentColor; stroke-width: 1.25;
  stroke-linecap: square; stroke-linejoin: miter;
}

.point .k {
  display: block; margin-bottom: .7em;
  font-size: clamp(12px, .9vw, 14px); font-weight: 300; opacity: .55;
  letter-spacing: .04em; text-transform: uppercase;
}
.point h3 {
  font-size: clamp(1.2rem, 1.55vw, 1.6rem); font-weight: 400;
  line-height: 1.3; margin-bottom: .55em;
}
.point p {
  font-size: clamp(1rem, 1.12vw, 1.15rem); font-weight: 300;
  line-height: 1.65; opacity: .82; max-width: 46ch;
}

/* The way out is the way in again. */
.end { grid-column: 1 / -1; text-align: center; }
.end .go { justify-content: center; margin-top: 0; }
.end .go a { font-size: clamp(1.5rem, 2.6vw, 2.6rem); letter-spacing: -0.02em; }
.end .fine { margin-top: 1.6em; line-height: 1.9; }
.end .fine a { border-bottom: 1px solid currentColor; }
.go .fine { line-height: 1.7; }

@media (max-width: 760px) {
  .label, .points { grid-column: 1 / -1; }
  .points, .points.three { grid-template-columns: 1fr; }
  .label { margin-bottom: clamp(-60px, -5vh, -24px); }
  .point p { max-width: none; }
}
