/* mema.studio home additions (26.11.2026), adapted from ma-rius.css: clickable portfolio cards,
   the rotating word on the middle card, the About pop-up, the two tabs under the row.
   Load after home.css, pages.css, mema-offer.css. */

/* the three middle cards are buttons that open the About pop-up */
.pf .page.page--btn { display: block; width: 100%; padding: 0; border: 0; font: inherit; color: inherit; text-align: inherit; cursor: pointer; }
.pf .page.page--btn:focus-visible { outline: 3px solid var(--m-choc, #3A2A21); outline-offset: 3px; }
.pf .page.page--btn { transition: transform .18s, box-shadow .18s; }
.pf .page.page--btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(58, 42, 33, .18); }
@media (prefers-reduced-motion: reduce) { .pf .page.page--btn { transition: none; } .pf .page.page--btn:hover { transform: none; } }

/* middle card: one word pair at a time (your vision / your habits / your health), in its colour */
.pf .statement .claim { font-size: 10.9cqw; line-height: 1.1; transition: opacity .9s ease; }
.pf .statement .claim.is-out { opacity: 0; }
.pf .claim.c-vision { color: var(--c-vision); }
.pf .claim.c-habits { color: var(--c-habits); }
.pf .claim.c-health { color: var(--c-health); }
@media (max-width: 768px) { .pf .statement .claim { font-size: 15cqw; } }

/* tabs under the row (ma-rius ".who"), left-aligned */
.who { padding-top: clamp(64px, 11vw, 120px); text-align: left; }
.who .panel { padding: 28px 0 8px; }
.who .panel p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.who .asks { list-style: none; margin: 0 0 16px; padding: 0; }
.who .asks li { font: clamp(21px, 2.3vw, 27px)/1.3 var(--serif); }
.go { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
.go__box--paper { background: var(--m-paper, #F3EBDD); color: var(--m-choc, #3A2A21); }
.go__box span { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }

/* About pop-up: any click closes it, Esc too */
.aboutpop { position: fixed; inset: 0; margin: auto; width: min(1040px, calc(100% - 40px)); height: fit-content; max-height: calc(100dvh - 40px); overflow: auto; padding: 0; border: 0; background: #fff; color: var(--m-choc, #3A2A21); box-shadow: 0 20px 60px rgba(58, 42, 33, .25); }
.aboutpop::backdrop { background: rgba(58, 42, 33, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.aboutpop__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding: clamp(28px, 5vw, 48px); }
.aboutpop__photos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aboutpop__photos img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.aboutpop__photos figcaption { grid-column: 1 / -1; font-size: 14px; opacity: .75; }
.aboutpop h2 { margin: 0 0 20px; font: clamp(30px, 4.4vw, 44px)/1.08 var(--serif); letter-spacing: -.02em; }
.aboutpop p { margin: 0 0 16px; max-width: 34em; font: clamp(17px, 1.7vw, 19px)/1.55 var(--serif); }
.aboutpop p em { font-style: italic; }
.aboutpop__more a { text-decoration: underline; text-underline-offset: .15em; color: inherit; }
@media (max-width: 768px) { .aboutpop__body { grid-template-columns: 1fr; } .aboutpop__photos { max-width: 320px; } }

/* 26.11.2026 (later): the three middle cards act as one group (hover one, all three lift); middle card: "interior design shaped by" + rotating word */
.pfrow:has(.page--btn:hover) .page--btn { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(58, 42, 33, .18); }
@media (prefers-reduced-motion: reduce) { .pfrow:has(.page--btn:hover) .page--btn { transform: none; } }
.pf .statement { align-content: center; gap: 3cqw; }
.pf .statement .claim-k { margin: 0; font: 500 4.2cqw/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
@media (max-width: 768px) { .pf .statement .claim-k { font-size: 5.6cqw; } }
