/* Shared layout primitives for the framed, hairline-divided page (Mistral-style). */

/* Framed column: every section wrap gets 1px hairlines on both outer edges (wide screens only; on phones
   the viewport edge is the frame). Sections are separated by a hairline. */
main .sec > .wrap, main .trust > .wrap { position: relative; }
@media (min-width: 1240px) {
  main .sec > .wrap::before, main .sec > .wrap::after {
    content: ""; position: absolute; top: calc(var(--sec-y) * -1); bottom: calc(var(--sec-y) * -1); width: 1px; background: var(--line); pointer-events: none;
  }
  main .sec > .wrap::before { left: 0; }
  main .sec > .wrap::after { right: 0; }
}
.sec + .sec, .trust + .sec { border-top: 1px solid var(--line); }

/* Centred section head: mono eyebrow, light headline, optional lead */
.sec-head--center { text-align: center; }
.sec-head--center h2 { margin: 14px auto 16px; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; font-weight: 300; letter-spacing: -0.04em; max-width: 16em; }
.sec-head--center p { margin: 0 auto; color: var(--text-2); max-width: 36em; font-size: 17px; }

/* Row head: title block left, action right (results) */
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head--row h2 { margin: 14px 0 16px; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; font-weight: 300; letter-spacing: -0.04em; }
.sec-head--row p { color: var(--text-2); max-width: 36em; font-size: 17px; }

/* Bordered cell: hairline tile used by logo row, solution cells and result cards */
.tile { border: 1px solid var(--line); background: var(--bg-3); }

/* Mosaic art cell: pixel-mosaic SVG fills the box, content sits on top */
.mosaic-box { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.mosaic-box > .mosaic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.mosaic-box > :not(.mosaic) { position: relative; }
