/* STRAY — a model's own page (models/<slug>.html, written by tools/make-model-pages.mjs).
   First the body: portrait, facts, digitals, campaign, and for the three newest faces
   their backstage clip under it. It keeps the class names
   of the profile dialog it grew out of (.profil__*), which stood on the start page until
   the model pages replaced it (20.10.2026). Then the page around it: the name, the
   buttons, the way on. */

/* ───── Body */
.profil__body {
  display: grid;
  gap: var(--space-l);
  padding: 0 var(--gutter) var(--gutter);
}
.profil__front,
.profil__digitals,
.profil__campaign { margin: 0; min-width: 0; }

/* studio grey holds the place while a photo loads; width/height keep the ratio */
.profil__shot { background: var(--bg); }
.profil__shot img { width: 100%; height: auto; }

/* the AI label: a set line of small print, no fill, no border */
.profil__ai {
  display: block;
  margin-top: .5rem;
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--muted);
}

.profil__sheet {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-l);
}
.profil__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-m);
  width: 100%;
  margin: 0;
}
.profil__facts dt {
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--muted);
}
.profil__facts dd {
  margin: .2rem 0 0;
  font-size: var(--fs-lede);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

/* the page's one accent; label and glyph box never change width */
.profil__toggle {
  gap: .55em;
  min-width: 12rem;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.profil__toggle svg { flex: none; }
.profil__toggle [data-glyph="added"],
.profil__toggle[aria-pressed="true"] [data-glyph="add"] { display: none; }
.profil__toggle[aria-pressed="true"] [data-glyph="added"] { display: block; }
/* on the list: the call to act is done, the button steps back to ink */
.profil__toggle[aria-pressed="true"] { background: var(--text); color: var(--paper); }

.profil__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
}

.profil__campaign {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* a video's own width would widen an auto track (1468 px on a phone) */
  gap: .75rem;
}
.profil__campaign figcaption {
  display: grid;
  align-content: end;
  gap: .3rem;
}
.profil__caption {
  font-size: var(--fs-lede);
  line-height: 1.3;
}
.profil__campaign .profil__ai { margin-top: 0; }

/* the backstage clip of the three newest faces, cut to 4:5 like every picture on the
   page (the 9:16 take, top kept) */
.profil__clip {
  position: relative;
  background: var(--bg);
}
.profil__clip video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
/* play and replay: the glyph changes, the name stays (aria-pressed carries the state) */
.profil__clip-knopf {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--text);
  background: var(--paper);
  cursor: pointer;
}
.profil__clip-knopf [data-glyphe="pause"],
.profil__clip-knopf[aria-pressed="true"] [data-glyphe="play"] { display: none; }
.profil__clip-knopf[aria-pressed="true"] [data-glyphe="pause"] { display: block; }

@media (min-width: 641px) {
  .profil__body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "front    sheet"
      "front    digitals"
      "campaign campaign";
    align-items: start;
  }
  .profil__front { grid-area: front; }
  .profil__sheet { grid-area: sheet; }
  .profil__digitals { grid-area: digitals; width: min(100%, 30rem); }
  /* campaign photo on the column of the front portrait, caption beside it */
  .profil__campaign {
    grid-area: campaign;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--space-l);
    align-items: end;
    margin-top: var(--space-l);
  }
  /* the 16:9 lead campaign (Yaw) takes the full width, caption below */
  .profil__campaign--wide { grid-template-columns: minmax(0, 1fr); }
  /* the clip under the campaign, mirrored: on the column of the facts, as wide as the
     digitals, its caption beside it on the left (22.10.2026) */
  .profil__body--clip {
    grid-template-areas:
      "front    sheet"
      "front    digitals"
      "campaign campaign"
      "clip     clip";
  }
  .profil__campaign--clip { grid-area: clip; }
  .profil__campaign--clip .profil__shot { grid-column: 2; grid-row: 1; width: min(100%, 30rem); }
  .profil__campaign--clip figcaption { grid-column: 1; grid-row: 1; justify-items: end; text-align: end; }
}

@media (max-width: 640px) {
  .profil__facts { column-gap: .75rem; }
  /* right under the photo, so it is on the first screen */
  .profil__toggle { order: -1; justify-self: stretch; }
}

/* ───── Around it */
.modell {
  --modell-fs: min(18vw, 30svh);   /* the name as the page's opening word, like STRAY on the start page */
  padding-top: var(--space-l);
}

.modell__name {
  margin: 0 0 var(--space-l);
  padding-inline: var(--gutter);
  font-family: var(--font-display);
  font-size: var(--modell-fs);
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  white-space: nowrap;             /* four or five letters each; the age goes beside them */
}
/* the age small at the cap height, as the count beside "New faces" (Instrument Sans:
   caps 0.72 em, figures 0.73 em; the cap top sits 0.07 em below the line box at 0.86) */
.modell__alter {
  display: inline-block;
  vertical-align: top;
  position: relative;
  top: calc(0.07 * var(--modell-fs) - 0.13 * var(--fs-lede));
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.modell .profil__body { max-width: 82rem; }

.modell__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* the way on: the face before, all faces, the face after */
.modell__weiter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem var(--space-m);
  max-width: 82rem;
  padding: var(--space-l) var(--gutter) 0;
  font-size: var(--fs-lede);
  line-height: 1.2;
}
.modell__weiter a {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 2.75rem;
  text-decoration: none;
}
.modell__weiter a:hover { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 640px) {
  .modell__knoepfe .btn { flex: 1 1 100%; }   /* across the column, like every single button on phones */
  .modell__weiter { font-size: var(--fs-body); }
}
