/* Single pages from the mema.studio portfolio (site/portfolio/), scoped under .pf (28.10) */
.pf {
  --bg: var(--cream); --fg: var(--ink);
  --void: #0e0c0b;
  --cream: #FBF7F0;
  --paper: #F3EBDD;
  --beige: #E6D8C3;
  --chocolate: #3A2A21;
  --terracotta: #A9532F;
  --rust: #8E3B27;
  --moss: #5C6B47;
  --sage: #C8D2B2;
  --forest: #2F4636;
  --butter: #EEDF9E;
  --ink: #2A1F19;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.pf img { width: auto; height: auto; object-fit: contain; }
.pf .page { width: calc(var(--H) * 0.7071); aspect-ratio: 210 / 297; flex: none; }
.pf .page { position: relative; overflow: hidden; container-type: inline-size; background: var(--bg, var(--cream)); color: var(--fg, var(--ink)); }
.pf .hd { position: absolute; top: 4.6cqw; left: 5.5cqw; right: 5.5cqw; display: flex; justify-content: space-between; font-size: 2.05cqw; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; }
.pf .pn { position: absolute; bottom: 4.6cqw; font-size: 2.05cqw; font-weight: 500; }
.pf .L .pn { left: 5.5cqw; }
.pf .R .pn { right: 5.5cqw; }
.pf .statement { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 13cqw; }
.pf .statement p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 7.6cqw; line-height: 1.2; }
.pf .cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.pf .cover b { display: block; font-family: var(--serif); font-weight: 500; font-size: 10cqw; letter-spacing: -0.01em; }
.pf .cover span { display: block; margin-top: 3cqw; font-family: var(--serif); font-style: italic; font-size: 4cqw; opacity: 0.85; }
.pf .foot { position: absolute; left: 12cqw; right: 12cqw; bottom: 11cqw; text-align: center; font-size: 2.2cqw; line-height: 1.5; opacity: 0.85; }
.pf .facts { position: absolute; top: 17cqw; left: 5.5cqw; right: 5.5cqw; display: grid; grid-template-columns: 30% 1fr; gap: 4cqw; font-size: 2.45cqw; line-height: 1.5; }
.pf .facts h2 { margin: 0; font: inherit; font-weight: 500; }
.pf .facts p { margin: 0 0 4cqw; }
.pf .facts dl { display: grid; grid-template-columns: 30% 1fr; gap: 0.9cqw 3cqw; margin: 0; }
.pf .facts dt { opacity: 0.75; }
.pf .facts dd { margin: 0; }
.pf .fig { position: absolute; top: 16cqw; bottom: 16cqw; left: 8cqw; right: 8cqw; margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3cqw; }
.pf .fig img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; object-fit: contain; }
.pf .fig.two img { max-height: calc(50% - 1.5cqw); }
.pf .cap { position: absolute; left: 14cqw; right: 14cqw; bottom: 4.6cqw; text-align: center; font-size: 2.05cqw; line-height: 1.45; }
.pf .inset { position: absolute; left: 15cqw; right: 15cqw; top: 17cqw; bottom: 17cqw; }
.pf .inset svg, .pf .full svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.pf .full { position: absolute; inset: 0; }
.pf .card { background: var(--card, var(--butter)); color: var(--ink); padding: 6cqw 6cqw 5cqw; display: flex; flex-direction: column; }
.pf .card h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 6.4cqw; line-height: 1.12; }
.pf .card .sub { margin: 3.5cqw 0 0; font-family: var(--serif); font-style: italic; font-size: 2.8cqw; }
.pf .card .body { margin-top: auto; font-family: var(--serif); font-size: 2.75cqw; line-height: 1.42; }
.pf .card .body p { margin: 0 0 2cqw; }
.pf .card .no { align-self: flex-end; font-family: var(--serif); font-size: 5cqw; line-height: 1; margin-top: 2cqw; }
.pf .index { position: absolute; inset: 0; display: grid; place-items: center; }
.pf .index ol { list-style: none; margin: 0; padding: 0; text-align: center; }
.pf .index li { font-family: var(--serif); font-size: 6.6cqw; line-height: 1.45; }
.pf .index a { text-decoration: none; }
.pf .index a:hover { text-decoration: underline; text-underline-offset: 0.12em; }
.pf .index sup { font-family: var(--sans); font-size: 2.2cqw; margin-left: 1cqw; vertical-align: 2.8cqw; }
.pf .collage { position: absolute; left: 10cqw; right: 8cqw; top: 22cqw; height: 92cqw; }
.pf .collage img { position: absolute; box-shadow: 0 1.2cqw 2.4cqw rgba(0,0,0,0.18); }
.pf .collage .a { width: 80%; left: 0; top: 4%; transform: rotate(-3deg); }
.pf .collage .b { width: 72%; right: 0; top: 42%; transform: rotate(2deg); }
.pf .collage .c { width: 46%; left: 14%; top: 64%; transform: rotate(-1deg); }
.pf .legend { position: absolute; left: 8cqw; right: 8cqw; font-size: 2.45cqw; line-height: 1.5; }
.pf .legend h3 { margin: 0 0 3cqw; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 6cqw; line-height: 1.15; }
.pf .legend ul { list-style: none; margin: 0; padding: 0; }
.pf .legend li { display: grid; grid-template-columns: 7cqw 1fr; gap: 3cqw; align-items: start; padding: 2.4cqw 0; border-top: 0.25cqw solid currentColor; }
.pf .legend li:last-child { border-bottom: 0.25cqw solid currentColor; }
.pf .legend b { font-weight: 600; }
.pf .sw { width: 6cqw; height: 6cqw; border-radius: 50%; margin-top: 0.4cqw; }
.pf .page { width: 100%; }
