/* The three moments of Offer Pages with Moments (s2xmq7), built once and linked by all four pages.
   1 · Page Perel's (o4ufx5) hero on scroll   2 · Page Kasia's (busu4f) "Was heißt eigentlich systemisch?"
   3 · Page Picks' (yhhxps, A · Zwei Linien) large image. Home's (5ok5xs) sizes and colours, but for Kasia's dark ground. */

:root {
  /* home's display size, the welcome's (5ok5xs: --welcome-size 3.6vw; 7.6vw narrow, 9.4vw phone) */
  --fs-display: 3.6vw;
  /* Kasia's dark ground, her light ink and hairline (busu4f --ground, --ink, --hair), for the Kasia component alone */
  /* her lists' sheet is beige like every other section (Sandra, call 20.11: one beige ground on every section and card); colour sits
     in the headings and the line, in the blue of her pearl chain (Heinz, note xcjdjj), never on a large box */
  --k-ground: #f6f2ea;
  --k-ink: #1f2b3a;
  --k-hair: rgba(31, 43, 58, .16);
  --k-blue: #0f5e66;
}
@media (max-width: 860px) { :root { --fs-display: min(calc(3.6vw * 2.2), 7.6vw); } }
@media (max-width: 600px) { :root { --fs-display: min(calc(3.6vw * 2.6), 9.4vw); } }

/* ---------- 1 · Perel's hero: as the page scrolls, the whole frame recedes a little, its corners round further and
   it dims; the picture inside stays as it is (Perel's own 1.05 zoom of the photo is left out: it zooms in on her).
   Perel o4ufx5 lines 82–101: scale(1 - .08p) from 50% 40%, radius + 28px·p, ink .12·p; p = scrollY / (.9 · screen). */
.opening .frame {
  --p: 0;
  transform: scale(calc(1 - .08 * var(--p)));
  transform-origin: 50% 40%;
  border-radius: calc(var(--frame-radius) + 28px * var(--p));
  isolation: isolate;
}
.js:not(.still) .opening .frame { will-change: transform; }
.opening .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--ink);
  opacity: calc(.12 * var(--p));
  pointer-events: none;
}
.still .opening .frame { transform: none; border-radius: var(--frame-radius); }
.still .opening .frame::after { opacity: 0; }

/* ---------- 2 · Kasia's "Was heißt eigentlich systemisch?": a large Cinzel heading in capitals, its second line
   indented with a hairline coming in from the left edge, her words in a column beside it, on Kasia's dark ground.
   busu4f lines 226–247, 357–362, 393–396; the heading at home's display size and indent (5ok5xs .wh, .wl h2 .l2). */
.kasia {
  background: var(--k-ground);
  color: var(--k-ink);
  overflow-x: clip;
  padding: var(--gap) var(--side) calc(var(--gap) + var(--sheet));
}
.k-wrap {
  display: grid;
  /* the heading on the left; her words from the page's middle to the content's right edge (Heinz, 20.10: no cramped column) */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0;
  align-items: start;
}
.k-head { padding-right: var(--gutter, 40px); }
.k-head {
  /* quiet (call 20.10): at the page's headline size, in Cinzel's own small capitals; "Herzlich willkommen" on home stays the one large heading */
  --k-in: calc(var(--fs-headline) * 2.6);
  font-family: "Cinzel", serif;
  font-weight: 400;
  font-size: var(--fs-headline);
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: left;
  color: var(--k-blue);
}
.k-head .l1 { display: block; }
.k-head .l2 { position: relative; display: block; padding-left: var(--k-in); }
.k-rule {
  position: absolute;
  top: 52%;
  left: calc(-1 * var(--side));   /* from the sheet's left edge, as home's welcome line from the screen's, so all of it is seen drawing */
  right: calc(100% - var(--k-in) + .35em);
  height: 1px;
  background: var(--k-blue);
  transform-origin: 0 50%;   /* from the left edge into the heading, as home's welcome line */
  transform: scaleX(var(--k, 0));
}
.k-beside { padding-top: 14px; }
.k-beside p + p, .k-beside p + .refs, .k-beside .refs + p { margin-top: 1em; }
.k-beside .go { color: var(--k-ink); }
.k-beside .go .ar { color: var(--k-ink); }   /* the accent green would vanish on the dark ground */
.still .k-rule { transform: none; }

/* her two references, linked in home's link style; the hairlines between them in Kasia's */
.refs { list-style: none; }
.refs li + li { border-top: 1px solid var(--k-hair); }
.refs .go { padding: 12px 0; }

@media (max-width: 1024px) {
  .k-wrap { grid-template-columns: minmax(0, 1fr); }
  .k-beside { margin: 7vh 0 0 calc(var(--fs-headline) * 2.6); max-width: 30rem; }
}
@media (max-width: 860px) {
  .k-head { --k-in: calc(var(--fs-headline) * 1.6); }
  .k-beside { margin-left: 0; margin-top: 5vh; }
}

/* a dark sheet with a picture (Heinz, 21.10: "hier will ich den text links rüber, und rechts ein foto haben"; on Jobcoaching
   "auch ein bild rechts"): the heading and her words under it on the left, at the heading's indent; the picture from the
   page's middle, in a hairline frame of the dark ground, settling inside it as the about's picture does; below 1025 px
   it stands under her words. Upright, with air between her words and it (Heinz, 21.10: "im Hochformat"; "zu cramped ...
   der text klebt quasi auf dem foto") */
.k-photo .k-wrap { align-items: center; column-gap: clamp(48px, 6vw, 120px); }
.k-pic { width: min(400px, 100%); aspect-ratio: 4 / 5; margin: 0; border: 1px solid var(--k-hair); padding: 10px; border-radius: var(--frame-radius); overflow: hidden; }
.k-pic .clip { width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--frame-radius) - 10px); }
.k-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1.14)); will-change: transform; }
.still .k-pic img { transform: none; }
@media (min-width: 1025px) {
  .k-photo .k-beside { margin: 5vh 0 0 calc(var(--fs-headline) * 2.6); max-width: 30rem; padding-top: 0; }
  .k-photo .k-pic { margin: 0 auto; }   /* in the middle of its half, so her words keep their distance */
}
@media (max-width: 1024px) {
  .k-pic { margin: 6vh 0 0 calc(var(--fs-headline) * 2.6); }
}
@media (max-width: 860px) {
  .k-pic { margin-left: 0; }
}

/* ---------- 3 · Picks' large image: a large square picture beside her words, growing into place as it comes in.
   yhhxps lines 450–477, 697–699, 732, 905–906: scale(.9 + .1g) from 50% 60%; g = (screen − top) / (.65 · screen). */
.picks {
  background: var(--paper);
  padding: var(--gap) var(--side) calc(var(--gap) + var(--sheet));
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(500px, 40vw);
  column-gap: clamp(32px, 3.5vw, 64px);
  align-items: center;
}
.picks .p-fig {
  aspect-ratio: 1 / 1;
  border-radius: var(--frame-radius);
  overflow: hidden;
  transform: scale(calc(.9 + .1 * var(--g, 1)));
  transform-origin: 50% 60%;
}
.js:not(.still) .picks .p-fig { will-change: transform; }
.picks .p-fig img { width: 100%; height: 100%; object-fit: cover; }
.picks .p-note { padding: 0 clamp(32px, 3.2vw, 52px); }
.picks .p-note .title { font-weight: 400; }
.picks .p-note p { color: var(--ink-soft); margin-top: .8em; }
.still .picks .p-fig { transform: none; }
@media (max-width: 860px) {
  .picks { grid-template-columns: 1fr; row-gap: 40px; }
  .picks .p-fig { width: 82%; }
  .picks .p-note { width: 100%; padding: 0; }
}
@media (max-width: 600px) {
  .picks .p-fig { width: 88%; }
}

