/* Get picked (plan.md). Layout K: the words on the paper at the left, the photo seen through four rising bar-shaped
   windows at the right (the logo's bars: equal widths, a 1.6% gap, heights 55, 70, 85 and 100%), the tallest edged in
   brass, the review cards over their foot; the three bars on the paper-alt; the island over the sofa at night; the
   questions; the close with its words at the right. Tokens only. */

/* ---------- the header ---------- */
.pkh { padding-block: clamp(2rem, 1rem + 4vh, 3.5rem) clamp(5rem, 3rem + 7vh, 7.5rem); }
.pkh__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); min-height: clamp(460px, 64vh, 600px); }
.pkh__art { position: relative; }
/* the photo is drawn 1.03 times the box's width from its left edge (its aspect 1.79 over a box of 1.739), so the
   roofer's face falls in the second bar and the homeowner's in the fourth */
.pkh__bars {
  position: relative; margin: 0; aspect-ratio: 1.739; overflow: hidden; --pos: 0% 50%;
  -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000);
  -webkit-mask-size: 23.8% 55%, 23.8% 70%, 23.8% 85%, 23.8% 100%; mask-size: 23.8% 55%, 23.8% 70%, 23.8% 85%, 23.8% 100%;
  -webkit-mask-position: 0 100%, 33.333% 100%, 66.667% 100%, 100% 100%; mask-position: 0 100%, 33.333% 100%, 66.667% 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.pkh__bars img { object-position: 0% 50%; }
.pkh__edge { position: absolute; top: 0; right: 0; width: 23.8%; aspect-ratio: auto; height: calc(100% / 1); pointer-events: none; }
.pkh__art .pkh__edge { top: 0; bottom: auto; height: auto; }
.pkh__edge { box-shadow: inset 0 0 0 3px var(--c-accent); }
.pkh__stop { top: 10px; left: 10px; right: auto; }
.pkh__art > .pkh__edge { height: 0; padding-bottom: calc(100% / 1.739); }
/* the cards over the foot of the first two bars, below the roofer's face (his chin at 62% of the box), hanging past the foot */
.pkh__cards { position: absolute; z-index: 3; left: -10%; top: 69%; display: grid; gap: .55rem; width: min(360px, 48%); }
.pkh__review { padding: .9rem 1.1rem; border-radius: var(--radius-m); background: var(--c-card); box-shadow: var(--shadow-l); }
.pkh__review p { margin: .3rem 0 .25rem; font: 500 1rem/1.35 var(--font-text); color: var(--c-ink); }
.pkh__review small { font-size: .82rem; color: var(--c-ink-soft); }
.pk-stars { color: var(--c-accent-text); letter-spacing: .06em; font-size: .95rem; }
.pkh__rating { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; padding: .75rem 1.1rem; border-radius: var(--radius-m); background: var(--c-brand); box-shadow: var(--shadow-l); color: var(--c-on-ink); }
.pkh__rating b { font: 600 .98rem/1.25 var(--font-text); }
.pkh__rating span { font-size: .88rem; color: var(--c-brand-on-ink); }
.pkh__rating .pk-stars { color: var(--c-accent-on-ink); }

/* ---------- the three bars (the signature), on the paper-alt with the motif faint behind ---------- */
.pks.motif-bars::before { right: auto; left: 2%; bottom: auto; top: 8%; width: min(16vw, 220px); } /* beside the headline, never beside the bars */
.pks .head { margin-inline: auto; max-width: 52rem; }
.pks__stage { position: relative; max-width: 1080px; margin-inline: auto; }
.pks__stop { top: -8px; right: 0; }
.pks__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, .5rem + 1.4vw, 1.75rem); align-items: end; }
.pk { position: relative; display: flex; flex-direction: column; gap: .55rem; min-height: calc(330px + var(--step) * 56px); padding: 1.5rem 1.25rem 1.5rem; border-radius: var(--radius-l) var(--radius-l) 0 0; background: var(--c-card); box-shadow: var(--shadow-m); }
.pk:last-child { box-shadow: var(--shadow-m), inset 0 0 0 2px var(--c-accent); }
.pk__moment { position: relative; flex: 1; display: grid; align-content: center; gap: .6rem; padding-bottom: .75rem; }
.pk__name { font-size: var(--fs-h3); }
.pk__line { font-size: var(--fs-small); line-height: 1.45; color: var(--c-ink-soft); }
.pk__chip { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .4rem .8rem .4rem .4rem; border-radius: 999px; background: var(--c-paper); border: 1px solid var(--c-line); font: 600 .84rem/1.2 var(--font-text); color: var(--c-brand); }
.pk__tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--c-brand) 9%, var(--c-card)); }
.pk__tick svg { width: 12px; height: 12px; fill: none; stroke: var(--c-brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* reviews: the text that asks, five stars filling whole, the review posted */
.pk__sms { margin: 0; padding: .75rem .95rem; border-radius: 16px 16px 16px 4px; background: var(--c-paper-alt); font-size: .9rem; line-height: 1.4; color: var(--c-ink); }
.pk__rate { margin: .2rem 0 0; min-height: 1.9rem; font-size: 1.9rem; line-height: 1; letter-spacing: .08em; }
.pk__full { display: inline-block; color: var(--c-accent); }
/* the website: a phone-sized page, its button pressed, the request sent */
.pk__page { display: grid; gap: .45rem; padding: .9rem; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-paper); }
.pk__brand { font: 600 .74rem/1.2 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-soft); }
.pk__headline { font: 600 1.15rem/1.2 var(--font-display); color: var(--c-brand); }
.pk__stars-line { font-size: .8rem; color: var(--c-ink-soft); }
.pk__stars-line .pk-stars { font-size: .8rem; }
.pk__book { position: relative; display: block; margin-top: .25rem; padding: .7rem; border-radius: 999px; background: var(--c-brand); color: var(--c-on-brand); text-align: center; font: 600 .86rem/1.25 var(--font-text); }
.pk__press { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--c-accent); background: color-mix(in srgb, var(--c-accent) 22%, transparent); }
/* the chat at midnight: the question, your AI chat's answer, then the brass top: booked */
.pk__time { margin: 0; text-align: center; font: 500 .74rem/1 var(--font-ui); letter-spacing: .06em; color: var(--c-ink-soft); }
.pk__q { justify-self: end; max-width: 88%; margin: 0; padding: .65rem .9rem; border-radius: 16px 16px 4px 16px; background: var(--c-brand); color: var(--c-on-brand); font-size: .9rem; line-height: 1.35; }
.pk__a { justify-self: start; max-width: 92%; margin: 0; padding: .65rem .9rem; border-radius: 16px 16px 16px 4px; background: var(--c-paper-alt); color: var(--c-ink); font-size: .9rem; line-height: 1.35; }
.pk__a small { display: block; margin-bottom: .15rem; font: 600 .7rem/1.2 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent-text); }
.pk__top { position: absolute; left: 50%; top: 0; translate: -50% -50%; display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .5rem 1rem .5rem .5rem; border-radius: 999px; background: var(--c-accent); color: var(--c-on-accent); font: 600 .9rem/1.2 var(--font-text); white-space: nowrap; box-shadow: var(--shadow-m); }
.pk__top .pk__tick { background: var(--c-card); }

/* ---------- the island, over the sofa at night ---------- */
.pki { position: relative; isolation: isolate; overflow: hidden; background: var(--c-brand); color: var(--c-on-ink); }
.pki__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; --pos: 60% 40%; }
.pki__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--c-brand) 92%, transparent) 0%, color-mix(in srgb, var(--c-brand) 78%, transparent) 38%, color-mix(in srgb, var(--c-brand) 25%, transparent) 70%, color-mix(in srgb, var(--c-brand) 35%, transparent) 100%); }
.pki__stop { top: 18px; right: 18px; }
.pki__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: clamp(2rem, 1rem + 4vw, 5rem); min-height: 620px; padding-block: var(--section-y); }
.pki__in .head { margin-bottom: 0; align-self: center; }
.scene.pki__scene { min-height: 420px; }

/* ---------- the phone ---------- */
@media (max-width: 899.98px) {
  .pkh__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pks__list { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .pk { min-height: 0; border-radius: var(--radius-l); }
  .pki__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
}
@media (max-width: 759.98px) {
  /* the phone: the photo plainly framed (the bars need the computer's width to hold both faces), the cards at its right foot */
  .pkh__bars { aspect-ratio: 1; border-radius: var(--radius-l); -webkit-mask-image: none; mask-image: none; --pos: 50% 50%; }
  .pkh__bars img { object-position: 50% 50%; }
  .pkh__edge { display: none; }
  .pkh__cards { left: auto; top: auto; right: 10px; bottom: 10px; width: 50%; }
  .pkh__review p { font-size: .88rem; }
  .pkh__rating span { font-size: .8rem; }
  .pki__media { --pos: 62% 40%; }
}
