/* Pictures. One rule for the whole site: a picture is part of the composition. It is large,
   the person in it is clear of the text, the face is never cropped or covered, and he faces
   into the content. Loaded last, so it settles every earlier picture rule. */

/* ---- the three company doors: the picture is dressed in the page's dark tone, never fully clear.
   Pointing at a door dresses it in that company's own colour, the colour of its page. ---- */
.door { background: var(--slate); isolation: isolate; --door: var(--clay-fill); --door-ink: #fff; }
.door--tp { --door: #6A2BD9; --door-ink: #fff; }
.door--on { --door: #E8FA80; --door-ink: #0B0B0B; }
.door--fq { --door: #C5A55A; --door-ink: #0A0B0E; }
.door:hover, .door:focus-visible { background: var(--door); color: var(--door-ink); flex-grow: 1.85; }
.door__img { z-index: 0; opacity: .36; filter: grayscale(1) contrast(1.1); object-position: 50% 16%; scale: var(--zoom, 1); translate: var(--shift, 0 0);
  transition: opacity .6s, scale 1.6s cubic-bezier(.2,.8,.2,1); }
.door:hover .door__img, .door:focus-visible .door__img { opacity: .55; mix-blend-mode: multiply; transform: none; scale: calc(var(--zoom, 1) * 1.045); }
.door:hover i, .door:focus-visible i { color: inherit; }
.door em { display: block; width: fit-content; margin-top: 16px; padding: 9px 14px; border-radius: 99px; background: var(--ink); color: var(--paper); }
/* FQ Central: he stands left of centre beside the screen, clear of the name */
.door--left-photo .door__img { object-position: 13% 30%; }
.door--wide-photo .door__img { object-position: 24% 50%; }
@media (max-width: 760px) { .door { min-height: 300px; } .door__img { object-position: 50% 20%; } .door--wide-photo .door__img { object-position: 20% 40%; } }

/* ---- the career: each step leads to its company, and the journey ends on a tall picture ---- */
.stop h3 a { color: inherit; text-decoration: none; }
.stop.is-link h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stop.is-link h3 a:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.track__end { position: relative; flex: 0 0 auto; margin: 0 0 0 clamp(10px, 3vw, 60px); height: min(60svh, 640px); aspect-ratio: 4 / 5; overflow: hidden; }
.track__end img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; }
.track__end figcaption, .wide-pic figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 9px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.no-motion .track__end { height: auto; width: min(100%, 420px); margin: 0; }
@media (max-width: 760px) { .track__end { height: auto; width: 100%; margin: 0; aspect-ratio: 4 / 5; } }

/* ---- workshops: one large picture of the room, and a portrait that stays beside the list ---- */
.wide-pic { position: relative; margin: clamp(30px, 4vw, 56px) 0 clamp(34px, 5vw, 70px); height: clamp(230px, 42vw, 600px); overflow: hidden; background: var(--slate-2); }
.wide-pic img { display: block; width: 100%; height: 118%; object-fit: cover; object-position: 40% 50%; will-change: transform; }
.beside { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4.4vw, 70px); align-items: start; }
.beside .co-rows { margin-top: 0; }
.beside .co-rows li { grid-template-columns: 3.2rem minmax(0, 1fr); }
.beside .co-rows li p, .beside .co-rows li.is-link em { grid-column: 2; }
.beside__pic { position: sticky; top: 13svh; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.beside__pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; }
@media (max-width: 760px) { .beside { grid-template-columns: 1fr; } .beside__pic { position: static; order: -1; aspect-ratio: 4 / 3; } }

/* ---- the book: the author stands beside his book and looks towards it ---- */
.book { grid-template-columns: minmax(300px, 44%) 1fr; align-items: end; }
.book__stage { --h: clamp(380px, 44vw, 640px); position: relative; height: var(--h); display: flex; align-items: flex-end; }
.book .book__author { flex: none; height: 100%; width: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; box-shadow: none; border-radius: 0; }
/* the cover overlaps only the portrait's lower right corner: shoulder and wall, never the face */
.book .book__cover { flex: none; position: relative; width: calc(var(--h) * .36); height: auto; margin: 0 0 4% calc(var(--h) * -.09); rotate: 4deg; }
.book > div:last-child { padding-bottom: clamp(10px, 3vw, 44px); }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } .book__stage { --h: 84vw; } .book .book__cover { width: calc(var(--h) * .33); margin-left: calc(var(--h) * -.1); rotate: 3deg; } }

/* ---- the menu: its picture has presence ---- */
.menu__side img { width: auto; height: min(44svh, 430px); aspect-ratio: 4 / 5; filter: none; }


/* the closing scene: the first button, "Send me a message", is the one that stands out */
.talk .routes .pill.clay { background: var(--clay-fill); color: #fff; }
.talk .routes .pill.clay::before { background: var(--paper); }
.talk .routes .pill.clay:hover, .talk .routes .pill.clay:focus-visible { color: var(--ink); }

/* the closing scene: the line under "Let's talk" passes behind him. A silhouette of the same
   portrait blocks the line where his figure is; the drawing sits on top of it; the words stay in front. */
#contact h2::after { content: none; }
#contact .talk__rule { position: relative; z-index: 0; display: block; height: calc(clamp(64px, 15vw, 260px) * .05); margin-top: calc(clamp(64px, 15vw, 260px) * -.035);
  background: var(--clay-fill); scale: var(--draw, 1) 1; transform-origin: left; }
#contact .talk__shade, #contact .talk__portrait { z-index: 1; }
#contact .talk__shade { position: absolute; right: clamp(0px, 4vw, 80px); bottom: 0; height: min(92%, 760px); aspect-ratio: 4 / 5; background: var(--slate); pointer-events: none;
  -webkit-mask: url("../assets/head/diffuse.webp") right bottom / contain no-repeat; mask: url("../assets/head/diffuse.webp") right bottom / contain no-repeat; }
#contact > *:not(.talk__portrait):not(.talk__shade):not(.talk__rule) { z-index: 2; }
@media (max-width: 900px) { #contact .talk__shade { display: none; } }
