/* STRAY — styles. Tokens first; every font-size is a --fs-* token. */

:root {
  /* Colour (art-direction.md, palette A) */
  --bg: #EBEBEB;
  --text: #181818;
  --paper: #FFFFFF;
  --accent: #BB1917;
  --on-accent: #FFFFFF;
  --muted: #4A4A4A;          /* 7.5:1 on --bg, for small print */
  --fokus: var(--text);      /* focus ring: 15:1 on --bg, 17:1 on --paper; the accent stays a surface */

  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  /* Edge & measure. The template sets word, lines and buttons ~1.9 % in from
     the edge, tighter than the usual 4 vw gutter; one value for all content. */
  --gutter: clamp(1rem, 1.9vw, 2.5rem);
  --measure: 62ch;
  --space-m: clamp(1rem, 2vw, 1.5rem);
  --space-l: clamp(2rem, 4vw, 3rem);
  --space-section: clamp(160px, 20vh, 240px);   /* light register */
  --strip-h: 2rem;
  /* the floating bar: 36 px items + 4 px padding = 44 px, 16 px off the bottom
     edge at 800 px height — so the chin of the hero face stays clear above it
     (measured on the start frame: 12-33 px from 1366x768 to 1920x1080) */
  --bar-h: 2.25rem;          /* mouse: 36 px items, the bar 44 px; touch gets 44 px items below */
  --bar-pad: .25rem;
  --bar-bottom: max(1rem, min(var(--gutter), 2svh));
  /* shift of plate + crown; their ground is graded to exactly --bg, so no edge
     shows. Since the pose take (Kling frames, 18.10.2026) the film holds the
     plate exactly; measured at frame 0, the upright start pose
     (word-legibility.mjs, video frozen): 1280x800 word 0.83, A 0.44 visible */
  --plate-x: 0vw;
  --plate-y: 6svh;
  --hero-min: 32rem;                      /* the hero's least height; phones turned sideways: 0 */

  /* Type scale — seven steps */
  --fs-hero: min(22.3vw, 40svh);          /* STRAY: ~68 % of the width, like the approved mockup */
  --fs-num: min(27vw, 50svh);             /* 27, condensed */
  --fs-title: clamp(2.4rem, 7vw, 6rem);
  --fs-lede: clamp(1.1rem, 1.55vw, 1.6rem);     /* a second voice above captions, buttons and bar */
  --fs-body: clamp(1rem, 0.55vw + 0.85rem, 1.2rem);
  --fs-ui: clamp(0.875rem, 0.3vw + 0.78rem, 1rem);
  --fs-small: 0.75rem;

  --lh-display: 0.86;
  --lh-body: 1.55;
  --ls-display: -0.035em;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  /* the floating bar never covers what keyboard focus or a jump brings into view */
  scroll-padding-bottom: calc(var(--bar-h) + 2 * var(--bar-pad) + var(--bar-bottom) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-kerning: normal;
  word-spacing: 0.05em;   /* Instrument Sans sets a 0.2 em word space; at text sizes words run together */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* no padding at the end: the footer keeps the floating bar off its last line itself */
}

img, video { display: block; max-width: 100%; }

h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 500; }
h1, h2 { text-transform: uppercase; }
p, li { text-wrap: pretty; }
[data-num] { font-variant-numeric: tabular-nums; }

a { color: inherit; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: .6em 1em; background: var(--paper); color: var(--text);
}
.skip:focus { top: 1rem; }
main:focus { outline: none; }

/* Curtain, start page only: at the end the page lifts off the footer. main is
   opaque and stacked above; the footer sticks to the bottom underneath it and is
   uncovered as the last section scrolls away. Page and footer share one grey, so
   the page's lower edge cannot be seen: uncovered line by line, the footer note
   began in the middle of a sentence and STRAY rose cut off (jury, 19.10.2026).
   So each part of the footer comes in whole once the page has cleared it
   (js/main.js). A footer link that gets keyboard focus while still covered
   scrolls the page to its end, or focus would sit unseen. */
body:has(.hero) main { position: relative; z-index: 1; background: var(--bg); }
body:has(.hero) .fuss { position: sticky; bottom: 0; z-index: 0; }
.fuss__nav:focus-within { opacity: 1 !important; }   /* over the fade: focus is never invisible */
/* phones and reduced motion: no curtain, the footer stands in the flow. A still
   footer under moving content is a parallax, and phones scroll it in a few flicks. */
@media (max-width: 640px), (prefers-reduced-motion: reduce) {
  body:has(.hero) .fuss { position: relative; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
}
/* date and time fields: keyboard focus sits on an inner segment (day, month,
   year), and Chromium and WebKit then leave :focus-visible off the field itself */
:where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"]):focus-within {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
}

/* ───────────────────────────── Draft strip (demo, every page) */
.entwurf {
  position: relative;
  z-index: 60;            /* the hero slides up under it, so the pinned hero fills the viewport */
  margin: 0;
  height: var(--strip-h);
  display: flex; align-items: center;
  padding: .35rem var(--gutter);
  background: var(--paper);
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.35;
}

/* ───────────────────────────── Floating bar (main navigation) */
/* an open dialog covers the page; under its backdrop the bar showed cut at the edge of the drawer */
body:has(dialog[open]) .nav { visibility: hidden; }
.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bar-bottom);
  width: max-content;
  margin-inline: auto;          /* centred without translate, which GSAP would take over */
  z-index: 50;
  display: flex;
  align-items: stretch;
  gap: .25rem;
  padding: var(--bar-pad);
  background: var(--paper);
  font-size: var(--fs-ui);
  line-height: 1;
  white-space: nowrap;
  max-width: calc(100vw - 2 * var(--gutter));
}
.nav__brand {
  display: inline-flex; align-items: center;
  padding: 0 1.1rem;
  background: var(--text);     /* black: in the interface the red belongs to the one call to action */
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav__list {
  display: flex; align-items: center;
  margin: 0; padding: 0 .4rem 0 .9rem;
  list-style: none;
}
.nav__list li { display: flex; align-items: center; flex-shrink: 0; }
.nav__list li + li::before {
  content: "/";
  padding: 0 .65rem;
  color: var(--muted);
}
.nav__list a,
.nav__list button {
  display: inline-flex; align-items: center; justify-content: center; gap: .3em;
  white-space: nowrap;
  min-height: var(--bar-h);
  min-width: var(--bar-h);        /* "Apply" is 43 px wide in WebKit: the target stays square at least */
  padding: 0 .1rem;
  background: none; border: 0;
  font: inherit; color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.nav__list a:hover,
.nav__list button:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ───────────────────────────── Hero */
.hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  margin-top: calc(-1 * var(--strip-h));   /* under the draft strip: pinned, no band of ground below */
  min-height: var(--hero-min);
  overflow: hidden;
  z-index: 2;              /* above the ring, which rises underneath while the picture dissolves */
  /* no own ground: the page ground shows, and through it the ring once the stage has faded */
}

/* back: the plate, its white ground scaled to --bg, so no blend mode is needed */
.hero-still,
.layer-back,
.hero-hinten,
.layer-front {
  /* the 16:9 plate always ends at the bottom edge and is sized by its height:
     the chin then keeps its distance to the bar on every aspect ratio, and the
     sides, graded to --bg, may end inside the viewport without an edge */
  --plate-w: calc((max(100svh, var(--hero-min)) - var(--plate-y)) * 16 / 9);
  position: absolute;
  /* placed with left/top, not translate: GSAP folds the CSS translate into its own
     transform when it animates these, and a percentage there gets lost */
  left: calc(50% - var(--plate-w) / 2 + var(--plate-x));
  top: var(--plate-y);
  width: var(--plate-w);
  max-width: none;
  height: calc(100% - var(--plate-y));
  object-fit: cover;
  object-position: 50% 0%;
}
/* back, word and crown stack inside. The stage carries the ground: the lines above it
   blend with it in difference mode, and from 16:9 on the video stops short of the left
   edge. On a transparent stage the lines turned white on grey there and half the text
   was gone (Eric, 19.10.2026). The ground leaves with the picture, so the ring still
   shows through afterwards. */
.hero__buehne { position: absolute; inset: 0; z-index: 0; background: var(--bg); }
.hero-still, .layer-back, .hero-hinten { z-index: 0; }

/* the giant word sits between the plate and the crown cut-out */
.layer-title {
  position: absolute;
  z-index: 1;
  left: calc(var(--gutter) - 0.045em);
  top: calc(var(--strip-h) + var(--gutter) - 0.055em);   /* cap top level with the top of the buttons */
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--text);
  white-space: nowrap;
}
/* the giant type waits for its font (index.html, 1 s at most) instead of jumping on the swap;
   so do the bar and the 27's caption, which grew 15 px and moved 3 px on it (Firefox,
   WebKit; 19.10.2026). The lines and buttons kept their place and need not wait. */
.schrift-wartet :is(.layer-title, .hero__num-value, .hero__num-label, .nav) { visibility: hidden; }

/* front: only the wet crown, so the hair and its glints stand in front of the letters */
.layer-front { z-index: 2; }
.layer-front img,
.layer-front canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }   /* the layer number travels with the pieces */

/* live: back and crown come from the running loop; until the first frame is
   drawn (and without WebGL) the still and the still crown of frame 0 stand */
.hero:not(.ist-live) .hero-hinten,
.hero:not(.ist-live) .layer-front__live,
.hero.ist-live .layer-front__still { visibility: hidden; }
/* live, the canvas covers the still. While the picture fades on scroll (.geht, from
   js/main.js) the still steps back entirely: under the fading canvas, frame 0 showed
   through, a second face over the running pose (19.10.2026). Only then: at rest frame 0
   stands under the canvas. Opacity, not visibility, so its alt text still describes the
   picture. Only where the canvas is shown (see the reduced-motion block). */
@media (prefers-reduced-motion: no-preference) and (min-width: 641px) and (min-height: 501px) {
  .hero.ist-live.geht .hero-still { opacity: 0 !important; }
}

/* landscape: the container stays out of the stacking order (no z-index), so the
   lines can blend with the picture; a z-index here would isolate them */
.hero-content {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; z-index: 4; }

/* Where the hair can pass, text in difference mode reads as ink on the ground (#141414)
   and light on the hair; red never sits under it. From 16:10 the lines stand clear of
   the hair through the whole loop (measured every 0.25 s at nine sizes) and keep plain
   ink: axe cannot read a blend mode and counted white on grey. Up to 3:2 (4:3, 5:4) the
   head reaches the column, and there the lines blend. */
@media (prefers-reduced-motion: no-preference) and (min-width: 641px) and (orientation: landscape) and (max-aspect-ratio: 3/2) {
  .hero.ist-live .hero__lines { color: var(--paper); mix-blend-mode: difference; }
}
/* The season caption: at 4.5 s the hair swings under its first letters on 16:10 screens
   (jury: ink on black hair vanished). A halo in the ground colour keeps it readable
   there and cannot be seen anywhere else. */
.hero__num-label { text-shadow: 0 0 .25em var(--bg), 0 0 .1em var(--bg), 0 0 .5em var(--bg); }

/* the last line stands on the baseline of the 27: top 33 %, baseline 0.76 em
   below; 0.29 em is the gap under the last baseline at line-height 1.3 */
.hero__lines {
  position: absolute;
  left: var(--gutter);
  bottom: calc(67% - 0.76 * var(--fs-num) - 0.29em);
  margin: 0;
  /* a small block at the edge, as in the reference, clear of the hair through the whole
     pose. The plate is sized by the height; in the rows of the lines the head reaches
     31.2 % of the plate width left of the plate's centre (every frame of the loop), so
     the column ends 24 px short of that. Squarer screens (4:3, 5:4) leave no room left
     of the hair: the column keeps its minimum, and the lines read in difference mode. */
  width: clamp(11rem, 50vw + var(--plate-x) - 0.5547 * (max(100svh, var(--hero-min)) - var(--plate-y)) - var(--gutter) - 1.5rem, 19em);
  container-type: inline-size;
  font-size: clamp(var(--fs-ui), 1.25vw, var(--fs-lede));   /* 16 px at 1280, 24 px at 1920 */
  line-height: 1.35;
}
/* one sentence per line where the column holds the longest (13.4 em); below
   that the sentences run on as plain text, without boxes of their own */
.hero__lines span { display: contents; }
@container (min-width: 13.6em) {
  .hero__lines span { display: block; }
}

.hero__num {
  position: absolute;
  z-index: auto;          /* no stacking context of its own: the caption blends with the picture */
  right: var(--gutter);
  top: 33%;
  margin: 0;
  display: grid;
  justify-items: end;
  text-align: right;
}
.hero__num-value {
  font-family: var(--font-display);
  font-size: var(--fs-num);
  font-weight: 650;       /* condensed strokes run thinner: 650 here matches 600 in STRAY */
  font-stretch: 75%;
  line-height: .8;
  letter-spacing: -0.04em;
  /* the hair of a turning head passes under the 2 (Killa: 2.7 s of every loop, up to 29 %
     of its ink at 1440x900, 20.10.2026); a rim in the ground colour keeps the figure whole
     there and cannot be seen on the ground. Its ink never lies over the red jumper */
  text-shadow: 0 0 6px var(--bg), 0 0 16px var(--bg);
}
.hero__num-label {
  margin-top: .9rem;
  font-size: var(--fs-small);
  line-height: 1.3;
}
/* where the loop runs, the season line stands above the 27, not under it: at 4.5 s the
   hair flick crossed it there (1024x768, 1280x800, 1440x900; all three jurors,
   19.10.2026). Measured over the whole loop, every 0.25 s: above the 27 it stays on
   ground. Up to 3:2 the head reaches that far too, so the line moves up by a share of
   the height, as the head grows with the height. Absolute, so the 27 keeps its place
   and its baseline with the lines. Phones show a still and keep the line under the 27. */
@media (min-width: 641px) and (orientation: landscape) {
  .hero__num-label { position: absolute; right: 0; bottom: 100%; margin: 0 0 .75rem; white-space: nowrap; }
}
@media (min-width: 641px) and (orientation: landscape) and (max-aspect-ratio: 3/2) {
  .hero__num-label { margin-bottom: 8svh; }
}
/* low screens (phones turned sideways, 1024x600): the 27 sits so high that the line above
   it ran into the buttons (-17 px at 844x390); there it stays under the 27 */
@media (min-width: 641px) and (orientation: landscape) and (max-height: 640px) {
  .hero__num-label { position: static; margin: .9rem 0 0; }
}

.hero__cta {
  position: absolute;
  top: calc(var(--strip-h) + var(--gutter));
  right: var(--gutter);
  display: grid;
  gap: .4rem;
  width: clamp(13rem, 15.5vw, 18rem);
}

.btn {
  font-family: inherit;   /* a <button class="btn"> brings its own font, weight and spacing otherwise */
  font-weight: inherit;
  word-spacing: inherit;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .8rem 1.1rem;
  font-size: var(--fs-ui);
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
}
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ink { background: var(--text); color: var(--paper); }
.btn:hover { text-decoration: underline; text-underline-offset: .2em; }

.hero .ki-hinweis {
  position: absolute;
  left: var(--gutter);
  bottom: var(--bar-bottom);
  z-index: 4;
  margin: 0;
  font-size: var(--fs-small);
  line-height: calc(var(--bar-h) + 2 * var(--bar-pad));   /* on the middle line of the bar */
}

/* phones turned sideways (up to 500 px high): the hero fits the screen. At its least height of
   512 px it stood taller than the phone, and the floating bar lay over the foot of the 27 at
   every common size, at 667 and 736 over the season line too (19.10.2026). Here the two
   buttons stand side by side, the 27 moves up under them and gets a little smaller, so 27 and
   season line end above the bar's band; the lines keep its baseline. STRAY ends before the
   buttons. The phone shows the still (see the no-video block), so the lines may be wider than
   the hair's reach in the loop. */
@media (min-width: 641px) and (orientation: landscape) and (max-height: 500px) {
  :root {
    --hero-min: 0px;
    --cta-zeile: 20rem;
    --fs-hero: min(22.3vw, 40svh, (100vw - 2 * var(--gutter) - var(--cta-zeile) - 1rem) / 3.05);
    --fs-num: min(27vw, 36svh);
    --num-top: calc(var(--strip-h) + var(--gutter) + 3.75rem + .2 * var(--fs-num));
  }
  .hero__cta { grid-template-columns: 1fr 1fr; width: var(--cta-zeile); }
  .hero__cta .btn { padding-inline: .6rem; white-space: nowrap; }   /* "See the new faces" on one line, as on phones */
  .hero__num { top: var(--num-top); }
  .hero__num-label { margin-top: .5rem; }
  .hero__lines {
    bottom: calc(100% - var(--num-top) - 0.76 * var(--fs-num) - 0.29em);
    width: 15.5rem;
  }
}
/* landscape under 700 px wide: the bar starts before the AI label ends (84 of 91 px at 667),
   so the label stands just above the bar's band instead of on its middle line */
@media (min-width: 641px) and (max-width: 699px) and (orientation: landscape) {
  .hero .ki-hinweis { bottom: calc(var(--bar-bottom) + var(--bar-h) + 2 * var(--bar-pad)); line-height: 1.6; }
}

/* The face changes (Eric, 20.10.2026): the figure is a button for the next face, over head
   and shoulders and under the texts, which stay clickable above it. The plate box as in
   the layer rule above, of which the figure takes the middle 40 %. */
.hero__wechsel {
  --plate-w: calc((max(100svh, var(--hero-min)) - var(--plate-y)) * 16 / 9);
  position: absolute;
  z-index: 3;
  left: calc(50% - var(--plate-w) * .2 + var(--plate-x));
  width: calc(var(--plate-w) * .4);
  top: var(--plate-y);
  bottom: calc(var(--bar-bottom) + var(--bar-h) + 2 * var(--bar-pad));
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero__wechsel:focus-visible { outline: 3px solid var(--fokus); outline-offset: -3px; }
/* the studio flash between two faces: white over the picture, under the word. Over the word
   too, STRAY blinked with every click (Eric, 20.10.2026: "refresht auch das STRAY"); the
   crown in front of the word fades with the flash instead (js/main.js) */
.hero__blitz {
  position: absolute;
  inset: 0;
  z-index: 1;           /* the word's layer, and before it in the markup: under it */
  background: #fff;
  opacity: 0;
  visibility: hidden;   /* at rest not there at all, not only clear (GSAP autoAlpha brings it) */
  pointer-events: none;
}
/* beside the pointer over the figure (mouse only): what a click does */
.hero__zeiger {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .5rem .75rem;
  background: var(--paper);
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
@media not ((hover: hover) and (pointer: fine)) {
  .hero__zeiger { display: none; }
}

/* Pause button: the hero loop runs on its own for longer than 5 s (WCAG 2.2.2) */
.medien-pause {
  position: absolute;
  right: var(--gutter);
  bottom: var(--bar-bottom);
  z-index: 4;
  inline-size: calc(var(--bar-h) + 2 * var(--bar-pad));   /* as tall as the bar beside it */
  block-size: calc(var(--bar-h) + 2 * var(--bar-pad));
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--text);
  background: var(--paper);
  cursor: pointer;
}
.medien-pause [data-glyphe="play"],
.medien-pause[aria-pressed="true"] [data-glyphe="pause"] { display: none; }
.medien-pause[aria-pressed="true"] [data-glyphe="play"] { display: block; }

/* touch: 44 px tap targets in the bar (house rule after WCAG 2.5.5) */
@media (pointer: coarse) {
  :root { --bar-h: 2.75rem; }
}

/* from 16:9 on the word is larger against the face (it follows the width, the
   face the height): one step lower keeps the A clear, the chin still free */
@media (min-aspect-ratio: 16/9) {
  :root { --plate-y: 8svh; }   /* 1366x768 and 1920x1080: word 0.84-0.86, A 0.44-0.48 */
}
/* up to 3:2 the word is small against the face (1024x768: word 0.82, A 0.47) */
@media (orientation: landscape) and (max-aspect-ratio: 3/2) {
  :root { --plate-y: 4svh; }
}

/* no video on small screens and under reduced motion: the still stays, the button goes */
/* phones turned sideways too (up to 500 px high): there the season line under the 27 stood
   in the hair flick (19.10.2026), and the loop gives a phone nothing the still lacks */
@media (prefers-reduced-motion: reduce), (max-width: 640px), (orientation: landscape) and (max-height: 500px) {
  video.layer-back, .hero-hinten, .layer-front__live, .hero .medien-pause { display: none; }
  .hero.ist-live .layer-front__still { visibility: inherit; }
}

/* ───────────────────────────── Sections */
section { padding-block: calc(var(--space-section) / 2); }
.hero { padding-block: 0; }
.hero + section,
.pin-spacer:has(> .hero) + section { padding-block-start: var(--space-section); }   /* GSAP wraps the pinned hero */
.hero + section,
.pin-spacer:has(> .hero) + section { position: relative; z-index: 1; }


/* ───────────────────────────── Portrait and phone: the hero is recomposed, not scaled.
   The landscape composition needs width beside the head; on any portrait screen
   the word goes on top, the head below it, the content under the picture. */
@media (max-width: 640px), (orientation: portrait) {
  :root {
    --fs-hero: calc((100vw - 2 * var(--gutter)) / 3.05);
    --fs-num: min(20vw, 12rem);
    /* the picture yields on short phones, so the buttons keep their distance to the bar */
    --plate-h: clamp(15rem, 100svh - 23rem, 48svh);
    --plate-x: 5vw;
    --plate-y: calc(var(--strip-h) + 2svh);
  }

  .hero {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  /* the plate shows head and shoulders: full 16:9 height, sides cropped */
  .hero-still,
  .layer-back,
  .hero-hinten,
  .layer-front {
    --plate-w: calc(var(--plate-h) * 16 / 9);
    top: var(--plate-y);
    left: calc(50% - var(--plate-w) / 2 + var(--plate-x));
    width: var(--plate-w);
    height: var(--plate-h);
    max-width: none;
    object-fit: cover;
  }

  .layer-title { top: calc(var(--strip-h) + .9rem); }

  /* the figure button over head and shoulders of this smaller picture */
  .hero__wechsel {
    --plate-w: calc(var(--plate-h) * 16 / 9);
    top: var(--plate-y);
    bottom: auto;
    height: var(--plate-h);
    left: calc(50% - var(--plate-w) * .2 + var(--plate-x));
    width: calc(var(--plate-w) * .4);
  }

  /* the bust ended in a hard horizontal line, a sticker cut out of the jumper (juries
     18.10. and 19.10.2026): here it runs out into the ground over its last 3.5rem */
  .hero-still,
  .hero-hinten { mask-image: linear-gradient(to bottom, #000 calc(100% - 3.5rem), transparent); }

  .hero .ki-hinweis {
    order: -1;                 /* first in the column, right under the plate */
    position: relative;
    left: auto; bottom: auto;
    margin-top: calc(var(--plate-h) + var(--plate-y));
    padding: .45rem var(--gutter) 0;
    line-height: 1.2;
  }

  .hero-content {
    position: relative;
    z-index: 4;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .9rem var(--space-m);
    padding: .6rem var(--gutter) 1rem;
  }
  .hero__lines,
  .hero__num,
  .hero__cta { position: static; }
  .hero__lines { grid-column: 1; grid-row: 1; width: auto; max-width: 34ch; font-size: var(--fs-body); line-height: 1.32; }
  .hero__num { grid-column: 2; grid-row: 1; align-self: start; }
  /* word by word, so its column is only as wide as the 27: on one line it took 117 px,
     and the lines beside it broke mid-sentence at 375 and 360 (jury, 19.10.2026) */
  .hero__num-label { margin-top: .35rem; width: min-content; font-size: var(--fs-small); }
  .hero__cta { grid-column: 1 / -1; grid-row: 2; width: auto; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --strip-h: 2.75rem; }   /* the strip runs to two lines */
  /* one button per section runs across the column, like the pair in the hero and the
     forms' buttons; at their own width they stood in three different widths (jury).
     Ring and faces: next to their own rules further down, which come later */
  .booked__cta .btn { width: 100%; }
  .entwurf { font-size: 0.6875rem; }
  .btn { padding: .7rem .6rem; }
  /* the bar takes the measure of the button row; its brand tile goes black, so
     no two red blocks stand on top of each other */
  .nav { left: var(--gutter); right: var(--gutter); width: auto; max-width: none; margin-inline: 0; }
  .nav__brand { padding: 0 .8rem; }
  .nav__list { margin-left: auto; padding: 0 .3rem 0 .6rem; }
  .nav__list li + li::before { padding: 0 .45rem; }
  .nav__list .nav__extra { display: none; }
}

/* ═════════════════════════════ Ring */
/* ───────────────────────────── Ring: eighteen polaroids around the manifest.
   The page's one pinned moment (landscape). Base = the portrait and phone
   composition: lines on top, the polaroids as a loose two-column scatter,
   one picture of each face (items 10-18, the second picture, only on the ring). */
.ring {
  position: relative;
  overflow-x: clip;            /* tilted polaroids at the edge never scroll the page sideways */
}

.ring__stage {
  display: grid;
  justify-items: center;
  row-gap: var(--space-l);
  padding-inline: var(--gutter);
}

/* the pale word and the manifest share one cell: the word stands behind the lines */
.ring__centre {
  display: grid;
  place-items: center;
  width: 100%;
}
.ring__centre > * { grid-area: 1 / 1; }

/* decoration: generated text in an aria-hidden box, so it is neither page text nor read aloud */
.ring__word { z-index: 0; pointer-events: none; }
.ring__word::before {
  content: "STRAY";
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  white-space: nowrap;
  color: var(--text);
  opacity: .09;
  filter: blur(.04em);         /* static: blurred once, never animated */
}

.ring__manifest {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  justify-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 500;
  font-stretch: 75%;            /* the condensed cut of the 27 */
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-align: center;
  text-transform: uppercase;    /* all four lines in capitals; FLASH ON stands out by the red alone */
}
.ring__line { display: grid; text-wrap: balance; }
.ring__line > * { grid-area: 1 / 1; }
.ring__line--flash { color: var(--accent); }   /* the one signal: display type, 5.4:1 on the ground */
/* phones: in capitals the last line broke before "→ BOOKED", the arrow first (jury) */
@media (max-width: 640px) {
  .ring__manifest { font-size: min(var(--fs-title), 9vw); }
}
.ring__soft { display: none; }                  /* portrait and phone: the lines stand sharp */

.ring__faces {
  width: min(100% - 2 * var(--space-m), 26rem);   /* room for the tilted corners inside the gutter */
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-l);
  row-gap: var(--space-m);
}
/* every polaroid spans two half rows; the right column starts one half row lower */
.ring__item { grid-row: span 2; transform: translate(var(--ring-nx), var(--ring-ny)) rotate(var(--ring-tilt)); }
.ring__item:nth-child(odd) { grid-column: 1; }
.ring__item:nth-child(even) { grid-column: 2; }
.ring__item:nth-child(2) { grid-row: 2 / span 2; }
.ring__item:hover,
.ring__item:focus-within { z-index: 3; }

/* angle on the ring (clockwise from the top; each face's second polaroid stands opposite its
   first, 180 degrees on), tilt, and the nudge in the scatter. The angles space the eighteen
   evenly along the curve (worked out for a width 1.9 times the height), not 20 degrees
   apart: equal angles crowded them at the narrow sides, where they overlapped */
.ring__item:nth-child(1)  { --ring-t: -82deg;   --ring-tilt: -6deg;  --ring-nx: -3%;  --ring-ny: 0%; }
.ring__item:nth-child(2)  { --ring-t: -66deg;   --ring-tilt: 4deg;   --ring-nx: 2%;   --ring-ny: 3%; }
.ring__item:nth-child(3)  { --ring-t: -50deg;   --ring-tilt: -3deg;  --ring-nx: 3%;   --ring-ny: -2%; }
.ring__item:nth-child(4)  { --ring-t: -29deg;   --ring-tilt: 7deg;   --ring-nx: -2%;  --ring-ny: 2%; }
.ring__item:nth-child(5)  { --ring-t: 0deg;     --ring-tilt: -5deg;  --ring-nx: -3%;  --ring-ny: 0%; }
.ring__item:nth-child(6)  { --ring-t: 29deg;    --ring-tilt: 3deg;   --ring-nx: 3%;   --ring-ny: -2%; }
.ring__item:nth-child(7)  { --ring-t: 50deg;    --ring-tilt: 6deg;   --ring-nx: 2%;   --ring-ny: 2%; }
.ring__item:nth-child(8)  { --ring-t: 66deg;    --ring-tilt: -4deg;  --ring-nx: -3%;  --ring-ny: 0%; }
.ring__item:nth-child(9)  { --ring-t: 82deg;    --ring-tilt: 2deg;   --ring-nx: -2%;  --ring-ny: 2%; }
.ring__item:nth-child(10) { --ring-t: 98deg;    --ring-tilt: -7deg;  --ring-nx: 3%;   --ring-ny: -2%; }
.ring__item:nth-child(11) { --ring-t: 114deg;   --ring-tilt: 5deg;   --ring-nx: 3%;   --ring-ny: 0%; }
.ring__item:nth-child(12) { --ring-t: 130deg;   --ring-tilt: -2deg;  --ring-nx: -2%;  --ring-ny: 2%; }
.ring__item:nth-child(13) { --ring-t: 151deg;   --ring-tilt: 4deg;   --ring-nx: -3%;  --ring-ny: 1%; }
.ring__item:nth-child(14) { --ring-t: 180deg;   --ring-tilt: -6deg;  --ring-nx: 2%;   --ring-ny: -2%; }
.ring__item:nth-child(15) { --ring-t: 209deg;   --ring-tilt: 3deg;   --ring-nx: 3%;   --ring-ny: 2%; }
.ring__item:nth-child(16) { --ring-t: 230deg;   --ring-tilt: -3deg;  --ring-nx: -2%;  --ring-ny: 0%; }
.ring__item:nth-child(17) { --ring-t: 246deg;   --ring-tilt: 6deg;   --ring-nx: 2%;   --ring-ny: -1%; }
.ring__item:nth-child(18) { --ring-t: 262deg;   --ring-tilt: -5deg;  --ring-nx: -3%;  --ring-ny: 2%; }
/* portrait and phone: the scatter shows each face once */
.ring__item:nth-child(n+10) { display: none; }

/* white paper, thicker at the bottom: the paper is the one carrier, no rule, no shadow */
.ring__polaroid {
  display: block;
  padding: 5% 5% 20%;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}
.ring__polaroid picture,
.ring__polaroid img { display: block; width: 100%; height: auto; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ring__polaroid { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }   /* DUR.s, power4.out */
  .ring__polaroid:hover { transform: scale(1.06); }
}

.ring__ki {
  justify-self: start;   /* on the gutter like the hero's label above it, not on the tilted column (jury) */
  margin: calc(var(--space-m) - var(--space-l)) 0 0;   /* a caption: close under the scatter */
  font-size: var(--fs-small);
}

/* the way on, after the scene: in the pinned frame the bottom corners belong to the bar
   (on phones turned sideways it takes the full width) and the top corners to the ring */
.ring__cta {
  width: max-content;
  margin: var(--space-l) auto 0;
}
@media (max-width: 640px) {
  /* across the column, like every single button on phones; the text block then spans the
     column too (place-items: center shrank it to the manifest, 306 of 343 px) */
  .ring__centre { grid-template-columns: minmax(0, 1fr); }   /* the pale word, 3 px wider, may spill; the track keeps the column */
  .ring__text { justify-self: stretch; }
  .ring__cta { width: 100%; }
}
.ring__text { display: grid; justify-items: center; }

/* ───────────────────────────── Landscape: the ring. It needs sin(), cos() and pow()
   in calc() and container units; without them the scatter above stays
   (js/main.js asks the same question before it pins). */
@media (min-width: 641px) and (orientation: landscape) {
  @supports (top: calc(1px * pow(sin(1deg), 2))) and (width: 1cqw) {
    .ring__stage {
      /* the floating bar's band at the bottom of the viewport */
      --ring-bar: calc(var(--bar-bottom) + var(--bar-h) + 2 * var(--bar-pad));
      --ring-a: 0deg;      /* turn of the ring, scrubbed by js/main.js */
      --ring-k: 1;         /* opening: share of the full radius */
      --ring-s: 1;         /* size of the polaroids */
      --ring-dy: 5svh;     /* the manifest stands this much above the centre of the ring */
      position: relative;
      display: block;
      height: 100svh;
      padding: 0;
    }

    .ring__centre {
      position: absolute;
      inset: 0 0 calc(var(--ring-bar) + 2 * var(--ring-dy));
      width: auto;
    }
    .ring__manifest { pointer-events: none; }   /* polaroids pass under the lines and stay clickable */
    /* the way on hangs under the manifest, inside the ring, and comes with the last line;
       the manifest keeps its place. After the pin it stood alone in an empty band (jury). */
    .ring__text { position: relative; pointer-events: none; }
    .ring__cta {
      position: absolute;
      top: calc(100% + var(--space-l));
      left: 0;
      right: 0;
      z-index: 3;
      margin: 0 auto;
      pointer-events: auto;
    }
    .ring__line { white-space: nowrap; }        /* each line one statement; the ring leaves room for the longest */
    /* the out-of-focus copy: blurred once, only its opacity moves */
    .ring__soft { display: block; opacity: 0; filter: blur(.08em); }

    .ring__faces {
      --ring-w: min(7.2cqw, 14.4cqh);                             /* polaroid width; eighteen of them since 20.10.2026 */
      --ring-rx: calc(50cqw - var(--gutter) - var(--ring-w) * .62);
      --ring-ry: calc(50cqh - var(--ring-w) * var(--ring-ryf, .45));
      position: absolute;
      inset: 0 0 var(--ring-bar);
      z-index: 1;
      display: block;
      width: auto;
      container-type: size;
    }
    .ring__item {
      --ring-ang: calc(var(--ring-t) + var(--ring-a));
      --ring-cos: cos(var(--ring-ang));
      --ring-sin: sin(var(--ring-ang));
      /* between an ellipse and a squircle: the full shoulders keep the long last line free */
      --ring-r: pow(calc(pow(var(--ring-cos), 4) + pow(var(--ring-sin), 4)), -.125);
      position: absolute;
      left: 50%;
      top: 50%;
      width: var(--ring-w);
      transform:
        translate(-50%, -50%)
        translate(calc(var(--ring-cos) * var(--ring-r) * var(--ring-rx) * var(--ring-k)),
                  calc(var(--ring-sin) * var(--ring-r) * var(--ring-ry) * var(--ring-k)))
        rotate(calc(var(--ring-tilt) + var(--ring-a) / 2))
        scale(var(--ring-s));
    }
    .ring__item:nth-child(n+10) { display: block; }   /* the ring carries both pictures of each face */

    /* the AI label sits on the middle line of the bar, as in the hero */
    .ring__ki {
      position: absolute;
      left: var(--gutter);
      bottom: var(--bar-bottom);
      z-index: 3;
      width: auto;
      margin: 0;
      line-height: calc(var(--bar-h) + 2 * var(--bar-pad));
    }
  }
}

/* short landscape screens (phones turned sideways): the ring reaches past the top and bottom edge */
@media (min-width: 641px) and (orientation: landscape) and (max-height: 540px) {
  .ring__stage { --ring-dy: 2svh; }
  .ring__faces { --ring-ryf: 0; }
  /* eighteen polaroids overlapped on this small ring (axe target-size, 844x390): each face
     once, on nine places that leave the bar's sector at the bottom free */
  .ring__item:nth-child(n+10) { display: none; }
  .ring__item:nth-child(1) { --ring-t: -90deg; }
  .ring__item:nth-child(2) { --ring-t: -50deg; }
  .ring__item:nth-child(3) { --ring-t: -15deg; }
  .ring__item:nth-child(4) { --ring-t: 20deg; }
  .ring__item:nth-child(5) { --ring-t: 52deg; }
  .ring__item:nth-child(6) { --ring-t: 128deg; }
  .ring__item:nth-child(7) { --ring-t: 160deg; }
  .ring__item:nth-child(8) { --ring-t: 195deg; }
  .ring__item:nth-child(9) { --ring-t: 230deg; }
}

/* ═════════════════════════════ New faces */
/* ───────────────────────────── New faces: a contact strip of the six front portraits.
   Default is a native swipe strip with scroll-snap (no JS, reduced motion, phone,
   portrait). .faces--scrub (js/main.js, wide landscape with motion) hands the strip
   to the scroll: the track runs sideways while the section passes, no pin. */
.faces {
  /* large cards, and the strip still fits above the bar. Nine cards since 20.10.2026: at 26vw
     the scrubbed track ran 3.1-3.9 px sideways per px of scroll, at 21vw it runs 1.7-2 */
  --faces-w: min(21vw, 42svh);
  --faces-gap: var(--space-m);
  overflow-x: hidden;            /* fallback for browsers without clip */
  overflow-x: clip;              /* the track never widens the page */
}

.faces__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--space-m) var(--space-l);
  padding-inline: var(--gutter);
}
.faces__title {
  grid-column: 1;
  margin-inline-start: -0.07em;  /* optical: the N has 0.07 em side bearing; its stem stands on the gutter like the cards */
  font-family: var(--font-display);
  font-size: var(--fs-title);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
/* the count stands small at the cap height of the title. Instrument Sans has ascent 0.97,
   descent 0.25, caps 0.72 and figures 0.73 em. So the cap top sits 0.07 em below the line
   box of the title (line-height 0.86), the figure top 0.13 em below the box of the count */
.faces__count {
  display: inline-block;
  vertical-align: top;
  position: relative;
  top: calc(0.07 * var(--fs-title) - 0.13 * var(--fs-lede));
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
.faces__lede {
  grid-column: 1;
  margin: 0;
  max-width: 34ch;
  font-size: var(--fs-lede);
  line-height: 1.3;
}
.faces__cta {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: clamp(13rem, 15.5vw, 18rem);   /* as wide as the buttons in the hero */
}

/* full bleed; the first card starts on the gutter like the heading */
.faces__strip {
  margin-block: calc(var(--space-l) - .5rem) -.5rem;
  padding-block: .5rem;          /* room for the focus ring inside the scroller */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
/* data-lenis-prevent-horizontal lets a sideways trackpad swipe reach the strip, but lenis.css
   also sets contain on the vertical axis: a vertical swipe that starts on the strip has to
   reach the page (Chrome stops the scroll chain there otherwise) */
.faces .faces__strip[data-lenis-prevent-horizontal] { overscroll-behavior-y: auto; }
/* Firefox gives the native scroller its own tab stop; its ring sits inside, the strip is full bleed */
.faces__strip:focus-visible { outline: 3px solid var(--fokus); outline-offset: -3px; }
.faces__track {
  display: flex;
  gap: var(--faces-gap);
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}
.faces__item {
  flex: none;
  width: var(--faces-w);         /* a set width, not only a flex-basis: Firefox sizes the track from it before the pictures load */
  scroll-snap-align: start;
}

/* the picture is the card: no fill, no rule; name left, age right as on a contact sheet */
.faces__card {
  position: relative;   /* holds the hidden ", with a backstage clip": absolute without it, it left the scroller and widened the phone page to 2533 px */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "photo photo" "name age";
  gap: .6rem var(--space-m);
  color: inherit;
  text-decoration: none;
  font-size: var(--fs-ui);
  line-height: 1.2;
  /* a card that takes focus scrolls clear of the floating bar */
  scroll-margin-block: var(--space-m) calc(var(--bar-h) + 2 * var(--bar-pad) + var(--bar-bottom) + var(--space-m));
}
.faces__photo { grid-area: photo; }
.faces__photo img { width: 100%; height: auto; }
.faces__name { grid-area: name; font-weight: 500; }
.faces__age { grid-area: age; color: var(--muted); }
/* a face with a backstage clip: a play mark after the name; the clip plays in the profile */
.faces__clip {
  display: inline-block;
  width: .95em;
  height: .95em;
  margin-inline-start: .4em;
  vertical-align: -.14em;
}
.faces__card:hover .faces__name { text-decoration: underline; text-underline-offset: .2em; }

.faces__ai {
  margin: var(--space-m) 0 0;
  padding-inline: var(--gutter);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* motion (js/main.js): the scroll moves the track, nothing scrolls natively */
.faces--scrub .faces__strip {
  overflow: visible;
  scroll-snap-type: none;
}
.faces--scrub .faces__track { will-change: transform; }

@media (max-width: 640px), (orientation: portrait) {
  .faces { --faces-w: 44vw; }
}
@media (max-width: 640px) {
  .faces { --faces-w: 78vw; }    /* one card and the edge of the next */
  .faces__head { grid-template-columns: 1fr; }
  .faces__cta { grid-column: 1; grid-row: auto; justify-self: stretch; width: auto; }   /* across the column */
}

/* ═════════════════════════════ Booked */
/* ───────────────────────────── Booked: campaigns (position 4 of 7). Calm: the only
   motion is a gentle drift of each picture inside its frame (main.js). No fills,
   no borders, no lines, no accent; the red lives in the photographs. */
.booked {
  /* Each picture is 6 % taller than its frame and starts 3 % above it, so the
     drift in main.js (±2 % of the picture) never shows an edge. The two frame
     ratios below are the pictures' ratios divided by 1.06: change them together. */
  --booked-overscan: 6%;
}

.booked__head { padding-inline: var(--gutter); }
.booked__title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
.booked__line {
  margin: calc(var(--space-m) * .75) 0 0;
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
}

.booked__lead,
.booked__figure {
  position: relative;              /* the name link stretches over the whole figure */
  margin: 0;
}
.booked__lead {
  display: grid;
  margin-block-start: var(--space-l);
}

/* The frame only clips: no fill, no border, no radius. */
.booked__frame {
  position: relative;
  display: block;
  overflow: hidden;
  overflow: clip;
  aspect-ratio: 1200 / 1406;       /* 4:5 picture (1200 × 1490) / 1.06 */
}
.booked__img {
  position: absolute;
  left: 0;
  top: calc(var(--booked-overscan) / -2);
  width: 100%;
  height: calc(100% + var(--booked-overscan));
  max-width: none;
  object-fit: cover;
}

/* Caption under the picture: campaign left, AI line right, like name and age on the
   cards of the template; on narrow frames the AI line drops below. */
/* every caption the same: the campaign across the full width, below it the name, and the
   AI label at the end of the name line (jury: it stood in three places, and next to the
   campaign it pushed "Gloves, spring/summer 2027" onto two lines in the narrow column) */
.booked__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 var(--space-m);
  padding-block-start: calc(var(--space-m) * .5);
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
}
.booked__campaign { grid-column: 1 / -1; text-wrap: balance; }
.booked__caption .booked__ai { grid-row: 2; grid-column: 2; }
.booked__name {
  font-weight: 500;                /* the link reads by weight, not by colour */
  text-decoration: none;
  text-underline-offset: .2em;     /* here, not in the hover rule, so the lead name can set its own */
  scroll-margin-block-end: calc(var(--bar-h) + 2.5rem);   /* Tab never parks it under the bar */
}
.booked__name::after {             /* the whole figure is the target; the name stays the link text */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.booked__name:focus-visible,
.booked__lead:hover .booked__name,
.booked__figure:hover .booked__name {
  text-decoration: underline;
}
.booked__ai {                      /* a set line, not a pill */
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Lead caption: three set lines, the name carries the size. */
.booked__caption--lead {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  justify-items: start;
  gap: calc(var(--space-m) * .25) var(--space-m);
  padding: calc(var(--space-m) * .75) var(--gutter) 0;
}
.booked__caption--lead .booked__name {
  font-size: var(--fs-title);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;      /* a display name, set like the names in the profile */
  text-underline-offset: .1em;
  text-decoration-thickness: max(1px, .025em);
}


.booked__grid {
  display: grid;
  row-gap: calc(var(--space-l) * 1.5);
  margin: calc(var(--space-l) * 2) 0 0;
  padding: 0 var(--gutter);
  list-style: none;
}

/* Phone: stacked. The lead is cropped square around Yaw and its caption goes below;
   the eight alternate between full and three-quarter width, so the column keeps the
   zig-zag of the wide layout. */
@media (max-width: 640px) {
  .booked__lead .booked__frame { aspect-ratio: 1; }
  .booked__lead .booked__img { object-position: 94% 50%; }   /* Yaw and the box in the middle */
  .booked__item:nth-child(2),
  .booked__item:nth-child(5),
  .booked__item:nth-child(8) { inline-size: 76%; justify-self: end; }
  .booked__item:nth-child(3),
  .booked__item:nth-child(6) { inline-size: 76%; }
}

@media (min-width: 641px) {
  .booked__head,
  .booked__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-m);
  }
  .booked__head {
    display: grid;
    align-items: end;
    align-items: last baseline;
  }
  .booked__title { grid-column: 1 / span 6; }
  .booked__line { grid-column: 8 / -1; margin: 0; }

  /* Lead: 16:9, caption in the empty lower left of the picture, without an overlay */
  .booked__lead .booked__frame { aspect-ratio: 2400 / 1264; }   /* 2400 × 1340 / 1.06 */
  .booked__lead > * { grid-area: 1 / 1; }
  .booked__caption--lead {
    z-index: 1;                    /* a grid item: above the picture, yet not the link's containing block */
    justify-self: start;
    align-self: end;
    max-inline-size: 50%;          /* Yaw starts at 56 % of the width */
    padding: 0 var(--gutter) calc(var(--gutter) * 2);
  }

  .booked__grid { row-gap: calc(var(--space-l) * 2); }
  .booked__item { grid-column: var(--booked-col) / span var(--booked-span); }
}

/* Landscape: Sanaz large and high, Nila small and lower; then Ren, and Iara centred
   between Ren and Matas; then Idir large on the right with Hodan lower on the left, as
   Sanaz and Nila the other way round, and Killa last on the right (22.10.2026). Left
   items start at columns 1, 3, 1, 2; right items at 8, under the line of the head. */
@media (min-width: 641px) and (orientation: landscape) {
  /* wide, short screens: a picture and its caption still fit, sizes keep their proportion */
  .booked__item { max-inline-size: calc((100svh - 9rem) * 1200 / 1406 * var(--booked-span) / 5); }
  .booked__item:nth-child(1) { --booked-col: 1; --booked-span: 5; grid-row: 1; }                             /* Sanaz */
  .booked__item:nth-child(2) { --booked-col: 8; --booked-span: 3; grid-row: 1; margin-block-start: 50%; }    /* Nila */
  .booked__item:nth-child(3) { --booked-col: 3; --booked-span: 4; grid-row: 2; }                             /* Ren */
  .booked__item:nth-child(4) { --booked-col: 8; --booked-span: 5; grid-row: 2 / span 2; align-self: center; } /* Iara */
  .booked__item:nth-child(5) { --booked-col: 1; --booked-span: 4; grid-row: 3; }                             /* Matas */
  .booked__item:nth-child(6) { --booked-col: 8; --booked-span: 5; grid-row: 4; }                             /* Idir */
  .booked__item:nth-child(7) { --booked-col: 2; --booked-span: 4; grid-row: 4; margin-block-start: 50%; }    /* Hodan */
  .booked__item:nth-child(8) { --booked-col: 8; --booked-span: 4; grid-row: 5; }                             /* Killa */
}

/* Portrait from 641 px (tablets): the same zig-zag with larger pictures */
@media (min-width: 641px) and (orientation: portrait) {
  .booked__line { grid-column: 7 / -1; }
  .booked__item:nth-child(1) { --booked-col: 1; --booked-span: 7; grid-row: 1; }
  .booked__item:nth-child(2) { --booked-col: 9; --booked-span: 4; grid-row: 1; margin-block-start: 50%; }
  .booked__item:nth-child(3) { --booked-col: 2; --booked-span: 4; grid-row: 2; }
  .booked__item:nth-child(4) { --booked-col: 7; --booked-span: 6; grid-row: 2 / span 2; align-self: center; }
  .booked__item:nth-child(5) { --booked-col: 1; --booked-span: 5; grid-row: 3; }
  .booked__item:nth-child(6) { --booked-col: 7; --booked-span: 6; grid-row: 4; }
  .booked__item:nth-child(7) { --booked-col: 1; --booked-span: 5; grid-row: 4; margin-block-start: 50%; }
  .booked__item:nth-child(8) { --booked-col: 8; --booked-span: 5; grid-row: 5; }
}

/* ═════════════════════════════ Apply & Book */
/* ───────────────────────────── Apply & Book (.anfragen): two forms that send nothing.
   Stacked by default. On landscape screens from 641 px the forms stand side by
   side; their heads share one grid row (subgrid), so both forms start and end
   on the same lines. No card, no fill: a field is a line, a photo slot a frame. */
.anfragen { padding-inline: var(--gutter); }

.anfragen__raster {
  display: grid;
  row-gap: calc(var(--space-section) / 2);    /* stacked, the two forms read as two chapters */
}
.anfragen__teil {
  display: grid;
  align-content: start;
  row-gap: var(--space-l);
  min-inline-size: 0;
}
/* #book lands like #apply, its heading half a section gap below the edge (Lenis reads it too) */
.anfragen #book { scroll-margin-top: calc(var(--space-section) / 2); }

.anfragen__kopf {
  display: grid;
  align-content: start;
  gap: var(--space-m);
}
.anfragen__kopf h2 {
  font-size: var(--fs-title);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
.anfragen__zeile {
  margin: 0;
  max-inline-size: var(--measure);
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
}

/* fields first, the send row at the foot: side by side, both buttons share one line */
.anfragen__form {
  container-type: inline-size;
  display: grid;
  grid-template-rows: 1fr auto;
  row-gap: var(--space-l);
  max-inline-size: 40rem;
}
.anfragen__felder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: var(--space-l) var(--space-m);
}
.anfragen__feld {
  grid-column: 1 / -1;
  display: grid;
  align-content: start;
  gap: .4rem;                   /* label to field closer than field to field */
  min-inline-size: 0;
}
/* pairs only where the form itself has the width (container, not viewport) */
@container (min-width: 18rem) {
  .anfragen__feld--paar { grid-column: auto; }
}
@container (min-width: 30rem) {
  .anfragen__feld--paar-weit { grid-column: auto; }
}

.anfragen label {
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
}

/* a focused control never ends up under the floating bar (WCAG 2.4.11) */
.anfragen :is(input, select, textarea, button) {
  scroll-margin-block-end: calc(var(--bar-h) + 2 * var(--bar-pad) + var(--bar-bottom) + 1rem);
}

/* text fields, dates and the select: a line, no box, no fill */
.anfragen :is(input:not([type="checkbox"], [type="file"]), select, textarea) {
  inline-size: 100%;
  min-block-size: 3rem;
  margin: 0;
  padding: .55rem 0;
  border: 0;
  border-block-end: 1px solid var(--text);
  border-radius: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-body);    /* 16 px and up: iOS does not zoom on focus */
  line-height: var(--lh-body);
  letter-spacing: inherit;
  word-spacing: inherit;
  appearance: none;
}
/* an entry to fix: the line turns heavy (no colour change), the message stands below it */
.anfragen :is(input:not([type="checkbox"], [type="file"]), select, textarea)[aria-invalid="true"] {
  border-block-end-width: 3px;
  padding-block-end: calc(.55rem - 2px);
}
/* focused, the ring marks the field; the line would run as a second line inside it */
.anfragen :is(input:not([type="checkbox"], [type="file"], [type="date"]), select, textarea):focus-visible,
.anfragen input[type="date"]:focus-within { border-block-end-color: transparent; }
.anfragen textarea { resize: vertical; }
.anfragen input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.anfragen input[type="number"]::-webkit-inner-spin-button,
.anfragen input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.anfragen input[type="date"]::-webkit-date-and-time-value { text-align: start; }
.anfragen input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
/* autofill keeps the ground instead of a tinted box (two rules: one unknown pseudo-class drops a list) */
.anfragen :is(input, select, textarea):autofill {
  box-shadow: inset 0 0 0 100vmax var(--bg);
  -webkit-text-fill-color: var(--text);
}
.anfragen :is(input, select, textarea):-webkit-autofill {
  box-shadow: inset 0 0 0 100vmax var(--bg);
  -webkit-text-fill-color: var(--text);
}

.anfragen__auswahl { position: relative; }
.anfragen .anfragen__auswahl select { padding-inline-end: 2rem; cursor: pointer; }
.anfragen .anfragen__auswahl select:has(option[value=""]:checked) { color: var(--muted); }
.anfragen__auswahl option { color: var(--text); }
.anfragen__auswahl svg {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(50% - 8px);
  pointer-events: none;
}

.anfragen__hinweis,
.anfragen__demo {
  margin: 0;
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
  color: var(--muted);
}
.anfragen__fehler {
  margin: 0;
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
  font-weight: 600;
}
.anfragen__fehler:empty,
.anfragen__datei:empty { display: none; }

/* photo slots: 4:5 like the digitals; the file input lies over the whole frame */
.anfragen__rahmen {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--text);
  overflow: hidden;
}
@media (hover: hover) {
  .anfragen__rahmen:hover { background: var(--paper); }
}
.anfragen__rahmen:has(input:focus-visible) {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
}
.anfragen__rahmen:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--text); }
/* the input is the frame's surface: drawn, so keyboard focus lands on something
   visible, but without its own words (the browser labels its button in the
   browser's language, on an English page) */
.anfragen__rahmen input {
  position: absolute;
  inset: 0;
  z-index: 2;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
}
.anfragen__rahmen input::file-selector-button { opacity: 0; cursor: pointer; }
.anfragen__rahmen input:focus-visible { outline: none; }   /* the ring is the frame's, outside its clip */
.anfragen__wahl,
.anfragen__gewaehlt {
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: var(--space-m);
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
  text-align: center;
}
.anfragen__gewaehlt { display: none; }
/* without JS too: a required file input turns :valid once a file is in */
.anfragen__rahmen:has(input:valid) .anfragen__wahl { display: none; }
.anfragen__rahmen:has(input:valid) .anfragen__gewaehlt { display: grid; }
.anfragen__vorschau {
  position: absolute;
  inset: 0;
  z-index: 1;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.anfragen__vorschau[hidden] { display: none; }   /* the global img { display: block } would beat [hidden] */
.anfragen__datei {
  margin: 0;
  overflow: hidden;
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.anfragen__haken {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: .75rem;
}
.anfragen__haken input {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  margin: 0;
  accent-color: var(--text);
  cursor: pointer;
}
.anfragen__haken label {
  display: flex;
  align-items: center;
  min-block-size: 2.75rem;         /* the label is the 44 px touch target for the 24 px box */
  font-size: var(--fs-body);
  cursor: pointer;
}
.anfragen__haken .anfragen__fehler { grid-column: 1 / -1; }

.anfragen__ende {
  display: grid;
  justify-items: start;
  gap: .75rem;
}
/* a <button> takes neither font nor word spacing from the page by itself */
.anfragen .btn {
  min-inline-size: clamp(13rem, 15.5vw, 18rem);   /* as wide as the hero buttons */
  border: 0;
  font-family: inherit;
  font-weight: inherit;
  word-spacing: inherit;
  cursor: pointer;
}
.anfragen__status {
  margin: 0;
  max-inline-size: var(--measure);
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
  font-weight: 500;
}

/* contact: the address is the label of a copy button, never a link target */
.anfragen__schreiben {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2em .6em;
  margin: calc(var(--space-l) * 2) 0 0;
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
}
.anfragen .kopier {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-block-size: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  word-spacing: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.anfragen .kopier:hover { text-decoration-thickness: 2px; }
.anfragen .kopier svg { flex: none; inline-size: .9em; block-size: .9em; }
/* the glyph changes (arrow to tick), not the text: the button keeps its width */
.anfragen .kopier [data-glyphe="kopiert"],
.anfragen .kopier[data-kopiert] [data-glyphe="kopieren"] { display: none; }
.anfragen .kopier[data-kopiert] [data-glyphe="kopiert"] { display: inline; }

@media (min-width: 641px) and (orientation: landscape) {
  .anfragen__raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: calc(var(--space-l) * 2);
    row-gap: var(--space-l);
  }
  .anfragen__teil {
    grid-row: span 2;
    grid-template-rows: subgrid;   /* the head row is shared: both forms start on one line */
  }
  /* one word per line: side by side, the two titles never read as one line across the gap */
  .anfragen__kopf h2 { inline-size: min-content; }
}

@media (max-width: 640px) {
  .anfragen__ende { justify-items: stretch; }
}

/* ═════════════════════════════ Shortlist */
/* ───────────────────────────── Shortlist drawer
   A native <dialog> in the top layer: paper on a veil of ink, ink type. Closed,
   the UA keeps a dialog display: none — so every display value here sits behind
   [open] or on an inner element. (The profile dialog that stood beside it went
   with the model pages, 20.10.2026; its layout lives on in css/model.css.) */
.merkliste {
  max-width: none;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--text);
  overscroll-behavior: contain;      /* a scroll inside does not run on into the page */
}
/* a dialog that scrolls is a tab stop of its own in Chromium (arrow keys scroll
   it). The drawer touches three viewport edges, so its ring lies inside. */
.merkliste:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: -3px;
}

/* ::backdrop inherits from its dialog, so the veil can use the ink token; the
   fallback in var() covers engines that do not pass custom properties on */
.merkliste::backdrop {
  background: color-mix(in srgb, var(--text, #181818) 55%, transparent);
  overflow: hidden;                  /* a scroll container, so the page does not scroll under the veil */
  overscroll-behavior: contain;
}
.merkliste::backdrop { opacity: var(--merkliste-veil, 1); }   /* faded in by GSAP, see js */

/* the heading takes focus on open as a starting point, it is no control (like main:focus) */
.merkliste__title:focus { outline: none; }

.merkliste__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 2.75rem;
  padding: 0 .1rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-ui);
  line-height: 1;
  cursor: pointer;
}
.merkliste__close:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ───── Shortlist drawer: a sheet on the right edge, full height */
.merkliste {
  inset-inline: auto 0;
  width: min(100%, 26rem);
  height: auto;
  max-height: none;
  margin: 0;
  scroll-padding-block-end: 8rem;    /* a focused Remove is never under the sticky foot */
}
.merkliste[open] {
  display: flex;
  flex-direction: column;
}
.merkliste [hidden] { display: none; }

.merkliste__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--gutter) var(--gutter) var(--space-l);
}
.merkliste__title {
  font-size: var(--fs-lede);
  line-height: 1.2;
}

.merkliste__empty {
  display: grid;
  justify-items: start;
  gap: var(--space-m);
  padding-inline: var(--gutter);
}
.merkliste__empty p {
  margin: 0;
  max-width: 30ch;
}

.merkliste__faces { padding-inline: var(--gutter); }
.merkliste__list {
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}
.merkliste__item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-m);
}
.merkliste__thumb { background: var(--bg); }
.merkliste__thumb img { width: 100%; height: auto; }
.merkliste__name {
  font-size: var(--fs-lede);
  line-height: 1.2;
}
.merkliste__age { color: var(--muted); }
.merkliste__remove {
  min-height: 2.75rem;
  padding: 0 .1rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-ui);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.merkliste__ai {
  margin: .75rem 0 0;
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--muted);
}

.merkliste__foot {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: .75rem;
  margin-top: auto;
  padding: var(--space-l) var(--gutter) var(--gutter);
  background: var(--paper);
}
.merkliste__request {
  width: 100%;
  border: 0;
  font: inherit;
  font-size: var(--fs-ui);
  line-height: 1.1;
  cursor: pointer;
}
.merkliste__note {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--muted);
}

/* ═════════════════════════════ Footer & legal pages */
/* ───────────────────────────── Footer: the word comes back, without the face.
   No motion here (art-direction.md, choreography: footer calm). */
.fuss {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-l) var(--space-m);
  /* top: the same distance as between two sections; bottom: room for the floating
     bar, which also covers the footer while it is being uncovered */
  padding: calc(var(--space-section) / 2) var(--gutter) calc(var(--bar-h) + 2 * var(--bar-pad) + var(--bar-bottom) + var(--space-m));
  font-size: var(--fs-ui);
  /* the giant word never pushes the page sideways, not even in the fallback font */
  overflow-x: hidden;
  overflow-x: clip;
}
.fuss__marke {
  grid-column: 1 / -1;
  margin: 0 0 0 -0.045em;          /* the S sits optically on the gutter, as in the hero */
  font-family: var(--font-display);
  font-size: var(--fs-hero);       /* size, weight and tracking of the hero word, so the same width */
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  white-space: nowrap;
}
.fuss__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fuss__nav li { display: flex; align-items: center; }
/* the slash of the bar; silent for screen readers where the alt syntax is supported */
.fuss__nav li + li::before {
  content: "/";
  content: "/" / "";
  padding: 0 .65rem;
  color: var(--muted);
}
.fuss__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;             /* touch target */
  text-decoration: none;
}
.fuss__nav a:hover,
.fuss__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .2em; }
.fuss__hinweis {
  justify-self: end;
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .fuss { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-m); }
  .fuss__hinweis { justify-self: start; }
}

/* ───────────────────────────── Legal pages: impressum, datenschutz, bildnachweis */
.recht__kopf { display: flex; flex-direction: column; }   /* the draft strip runs full width inside the banner */
.recht__start {
  align-self: flex-start;
  display: inline-flex;
  align-items: stretch;
  gap: .9rem;
  min-height: 2.75rem;
  margin: var(--space-m) var(--gutter) 0;
  font-size: var(--fs-ui);
  line-height: 1;
  text-decoration: none;
}
.recht__marke {                    /* the brand tile of the bar, black as there */
  display: inline-flex;
  align-items: center;
  padding: 0 1.1rem;
  background: var(--text);
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.recht__zurueck { display: inline-flex; align-items: center; }
.recht__start:hover .recht__zurueck { text-decoration: underline; text-underline-offset: .2em; }

.recht { padding: var(--space-l) var(--gutter) 0; }
.recht h1 {
  font-size: var(--fs-title);
  line-height: 1;                  /* as .platzhalter h2; at 0.86 the dots of the Ä touch the line above */
  letter-spacing: var(--ls-display);
  overflow-wrap: break-word;
}
.recht h2 {
  margin-top: var(--space-l);
  font-size: var(--fs-lede);
  font-weight: 600;
  line-height: 1.25;
}
.recht p,
.recht ul { max-width: var(--measure); margin: .75em 0 0; }
.recht ul { padding-left: 1.2em; }
.recht li + li { margin-top: .5em; }
.recht a { text-underline-offset: .2em; }
.recht .recht__stand { margin-top: var(--space-m); font-size: var(--fs-ui); color: var(--muted); }
.recht .recht__stand + p { margin-top: var(--space-l); }

/* contact as copy button: the address is the label, never a link target.
   Scoped to .recht, so a global .kopier from another section cannot collide */
.recht .kopier {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.recht .kopier span { white-space: nowrap; }
.recht .kopier svg { flex: none; }
/* the glyph changes (arrow to tick), not the text: same width, nothing jumps */
.recht .kopier [data-glyphe="kopiert"],
.recht .kopier[data-kopiert] [data-glyphe="kopieren"] { display: none; }
.recht .kopier[data-kopiert] [data-glyphe="kopiert"] { display: block; }

/* the one closing call of the campaign grid, under the last caption */
.booked__cta {
  display: flex;
  justify-content: flex-start;
  margin: var(--space-m) 0 0;
  padding-inline: var(--gutter);
}
/* from 641 px the last campaign (Killa) stands on the right: the call takes her column
   of the same twelve (22.10.2026; with Matas last it stood at the left edge) */
@media (min-width: 641px) {
  .booked__cta {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-m);
  }
  .booked__cta .btn { grid-column: 8 / -1; justify-self: start; }
}
