/* Design polish: paper grain, tags on the career track, hover fills, signal bars, pointer ring, closing portrait. */

/* a fine grain over everything, as printed paper has */
body::after { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* career track: taller steps, tags for places and scale */
.stop { transform: translateY(calc(var(--level, 0) * -4.6svh)); }
.tags { list-style: none; padding: 0; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { border: 1.5px solid currentColor; border-radius: 99px; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.stop b { transition: color .3s; } .stop:hover b { color: var(--clay); }
.stop:hover .tags li { opacity: 1; border-color: var(--clay); }

/* result cards: a clay sheet rises behind the content */
.card { isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--clay-fill); transform: translateY(101%); transition: transform .55s cubic-bezier(.65,.01,.05,.99); }
.card:hover::before, .card:focus-visible::before { transform: none; }
.card:hover b, .card:hover h3, .card:hover p, .light .card:hover p { color: #fff; }
.card::after { display: none; }

/* before and after, drawn as signal lines */
.bars { position: absolute; top: 26px; right: 24px; display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.bars i { display: block; width: 34px; background: repeating-linear-gradient(180deg, currentColor 0 2px, transparent 2px 6px); transform-origin: bottom; }
.bars i + i { color: var(--clay); }
.card:hover .bars i + i { color: #fff; }
.motion .bars i { transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.8,.2,1) .15s; }
.motion .bars.is-in i { transform: none; } .motion .bars.is-in i + i { transition-delay: .4s; }

/* pointer ring: follows the pointer, grows over anything that opens */
.ring { position: fixed; left: 0; top: 0; z-index: 80; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--clay); border-radius: 50%; pointer-events: none;
  opacity: 0; display: grid; place-items: center; transition: width .3s, height .3s, margin .3s, background-color .3s, opacity .3s; }
.ring span { font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.ring.is-on { opacity: 1; }
.ring.is-open { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--clay-fill); }
.ring.is-open span { opacity: 1; }
@media (pointer: coarse) { .ring { display: none; } }

/* closing scene: the line portrait returns, light on dark */
.talk__portrait { position: absolute; right: clamp(0px, 4vw, 80px); bottom: 0; height: min(92%, 760px); width: auto; filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; opacity: .9; pointer-events: none; }
.talk > *:not(.talk__portrait) { position: relative; z-index: 1; }
@media (max-width: 900px) { .talk__portrait { opacity: .28; right: -12vw; } }

/* section titles a size up, so each scene opens with a voice */
.eyebrow { font-size: 13px; }
.light .statement, .dark .statement { text-wrap: balance; }

/* the last screen is all contact */
.talk { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.book img:hover { transform: none; }

/* opening a case page or the CV: the new page rises as a sheet, like the scenes do */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: sheet-out .5s cubic-bezier(.65,.01,.05,.99) both; }
  ::view-transition-new(root) { animation: sheet-in .65s cubic-bezier(.65,.01,.05,.99) both; }
}
@keyframes sheet-out { to { transform: translateY(-7vh) scale(.97); filter: brightness(.55); } }
@keyframes sheet-in { from { clip-path: inset(100% 0 0 0 round 70px 70px 0 0); } to { clip-path: inset(0 0 0 0 round 0); } }

/* menu as a floating pill once the first screen is behind */
.bar { transition: transform .45s cubic-bezier(.65,.01,.05,.99), background-color .3s; }
.bar.is-pill { mix-blend-mode: normal; inset: 14px auto auto 50%; transform: translateX(-50%); width: max-content; gap: clamp(16px, 2.4vw, 34px);
  padding: 9px 10px 9px 22px; border-radius: 99px; background: rgba(14,14,14,.9); color: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar.is-pill.is-away { transform: translate(-50%, -160%); }
.bar.is-pill .cv { border-color: var(--clay); background: var(--clay-fill); color: #fff; }


/* career track: start low and climb, so the whole height is used */
.track__camera { justify-content: flex-end; padding-bottom: 15svh; }
.stop { transform: translateY(calc(var(--level, 0) * -6.4svh)); }

/* reduced motion: the career becomes a plain list, nothing is hidden */
.no-motion .track__camera { position: static; height: auto; padding: 96px 0 72px; }
.no-motion .track .eyebrow { position: static; margin: 0 var(--gutter) 30px; }
.no-motion .track__rail { flex-direction: column; width: auto; gap: 44px; padding: 0 var(--gutter); align-items: stretch; }
.no-motion .stop { width: auto; max-width: 46em; transform: none; }
.no-motion .runline, .no-motion .track__count { display: none; }
@media (max-width: 760px) { .stop { transform: none; } .track__camera { padding-bottom: 64px; } }

/* three companies as doors: the one under the pointer widens */
.doors { display: flex; gap: 1px; margin-top: clamp(36px, 5vw, 70px); background: rgba(246,244,238,.2); border: 1px solid rgba(246,244,238,.2); min-height: 72svh; }
.door { position: relative; flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 24px 28px; background: var(--slate); color: var(--paper);
  text-decoration: none; overflow: hidden; transition: flex-grow .75s cubic-bezier(.65,.05,0,1), background-color .45s; }
.door:hover, .door:focus-visible { flex-grow: 1.85; background: var(--clay-fill); }
.door i { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--clay); transition: color .3s; }
.door:hover i { color: #fff; }
.door b { position: absolute; right: 18px; top: 22px; writing-mode: vertical-rl; font-size: clamp(40px, 5.4vw, 80px); line-height: .9; font-weight: 900; font-stretch: 75%; letter-spacing: -.02em; text-transform: uppercase; }
.door span { display: block; max-width: 19em; padding-right: clamp(54px, 6vw, 96px); font-size: 16px; line-height: 1.45; }
.door strong { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.door em { display: block; margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .45s; }
.door:hover em, .door:focus-visible em { opacity: 1; transform: none; }

/* brands: what I did for the one under the pointer */
.brands li { cursor: pointer; outline: none; }
.brands li.direct { -webkit-text-stroke-color: var(--clay); }
.brands li.is-on, .brands li:focus-visible { color: var(--ink); }
.brands li.direct.is-on, .brands li.direct:hover { color: var(--clay); }
.did { margin-top: 58px; min-height: 2.5em; max-width: 30em; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.7vw, 42px); line-height: 1.12; color: var(--clay); }
.did + .note { margin-top: 18px; }
.light .co-rows { margin-top: clamp(30px, 4vw, 56px); }
@media (max-width: 760px) { .doors { flex-direction: column; min-height: 0; } .door { min-height: 240px; } .door b { font-size: 44px; } }

/* the book: the current cover, and a few pages fanned out beneath it */
.book img { border-radius: 3px; }
.pages { display: flex; justify-content: center; margin-top: clamp(50px, 7vw, 110px); padding: 0 6vw 30px; }
.pages img { width: min(19vw, 270px); margin-left: -4.2vw; border-radius: 3px; box-shadow: 0 18px 40px rgba(14,14,14,.2); transform: rotate(var(--r)) translateY(calc(var(--r) * var(--r) / 1deg / 1deg * 0.9px));
  transform-origin: 50% 120%; transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .3s; position: relative; }
.pages img:first-child { margin-left: 0; }
.pages img:hover { transform: rotate(0deg) translateY(-26px) scale(1.06); z-index: 3; box-shadow: 0 30px 60px rgba(14,14,14,.3); }
@media (max-width: 760px) { .pages { overflow-x: auto; justify-content: flex-start; padding: 0 var(--gutter) 24px; } .pages img { width: 46vw; margin-left: 12px; transform: none; } }

/* first screen, as on the first concept page: the ruled lines run through the letters of the
   name, the lines are as strong as the drawing's */
.hero { background: repeating-linear-gradient(180deg, transparent 0 calc(max(10px, .694vw) - 1.3px), rgba(14,14,14,.62) calc(max(10px, .694vw) - 1.3px) max(10px, .694vw)), var(--paper); }
.hero h1 { color: #fff; mix-blend-mode: difference; }

/* ---- design pass after the award review ---- */
/* accent on dark grounds is the lighter ember; fills stay the deep clay so white text passes */
.dark, .case__body, .case__next, .case__foot, .door, .co-block.dark, .track__camera { --clay: var(--ember); }
.door:hover, .door:focus-visible, .co-list li:hover { --clay: #fff; }
/* the accent is used less: section labels are quiet, only their dot carries the colour */
.eyebrow { color: var(--graphite); }
.dark .eyebrow, .co-block.dark .eyebrow, .case__body h2 { color: var(--mist); }
.track .eyebrow { color: inherit; opacity: .72; }
.rows i { color: var(--mist); }
.co-rows li::before { color: inherit; opacity: .55; }
.rows:hover a { opacity: .5; } .rows a:hover, .rows a:focus-visible { opacity: 1; }
/* result cards: a quiet wash on hover, the number takes the accent */
.card::before { background: var(--wash); }
.dark .card::before { background: var(--slate-2); }
.card:hover b { color: var(--clay); }
.card:hover h3, .card:hover p, .light .card:hover p { color: inherit; }
.card:hover .bars i + i { color: var(--clay); }
/* type: statements a size down and narrower, nothing under 12px */
.statement { font-size: clamp(32px, 4.4vw, 68px); line-height: 1.02; max-width: 13em; }
.tags li, .hero .tag { font-size: 12px; }
/* first screen: the ruling starts below the menu, the name breathes */
.hero { background: linear-gradient(var(--paper) 0 72px, transparent 72px),
  repeating-linear-gradient(180deg, transparent 0 calc(max(10px, .694vw) - 1.3px), rgba(16,21,31,.62) calc(max(10px, .694vw) - 1.3px) max(10px, .694vw)), var(--paper); }
.hero h1 { word-spacing: .12em; }
.brands li:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }

/* ---- pictures ---- */
.door > *:not(.door__img) { position: relative; z-index: 1; }
.door b { position: absolute; z-index: 1; }
.door__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); opacity: .2; transition: opacity .6s, transform 1.4s cubic-bezier(.2,.8,.2,1); }
.door:hover .door__img, .door:focus-visible .door__img { opacity: .34; transform: scale(1.05); mix-blend-mode: multiply; }
.stop__img { display: block; margin-top: 18px; width: min(100%, 300px); aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(1); transition: filter .5s; }
.stop:hover .stop__img { filter: none; }
.strip { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr; gap: 12px; margin: clamp(30px, 4vw, 56px) 0 clamp(26px, 3vw, 44px); }
.strip figure { margin: 0; overflow: hidden; }
.strip img { display: block; width: 100%; height: clamp(180px, 24vw, 360px); object-fit: cover; filter: grayscale(1); transition: filter .6s, transform 1.2s cubic-bezier(.2,.8,.2,1); }
.strip figure:hover img { filter: none; transform: scale(1.03); }
.strip figcaption { margin-top: 9px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
#credentials { padding-bottom: calc(clamp(72px, 11vw, 160px) + clamp(26px, 4.6vw, 78px)); }
#workshops { border-radius: clamp(26px, 4.6vw, 78px) clamp(26px, 4.6vw, 78px) 0 0; margin-top: calc(clamp(26px, 4.6vw, 78px) * -1); }
#brands { padding-bottom: calc(clamp(72px, 11vw, 160px) + clamp(26px, 4.6vw, 78px)); }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; } }

/* the account sheet: rises from the bottom like every other sheet on the site */
.sheet { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.sheet__veil { position: absolute; inset: 0; background: rgba(16,21,31,.55); opacity: 0; transition: opacity .4s; }
.sheet__body { --clay: var(--ember); position: absolute; left: 0; right: 0; bottom: 0; max-height: 86svh; overflow: auto; background: var(--slate); color: var(--paper);
  border-radius: clamp(26px, 4.6vw, 78px) clamp(26px, 4.6vw, 78px) 0 0; padding: clamp(34px, 5vw, 70px) var(--gutter) clamp(34px, 5vw, 64px);
  transform: translateY(102%); transition: transform .65s cubic-bezier(.65,.01,.05,.99); }
.sheet.is-open { pointer-events: auto; } .sheet.is-open .sheet__veil { opacity: 1; } .sheet.is-open .sheet__body { transform: none; }
.sheet .eyebrow { color: var(--mist); }
.sheet h2 { font-size: clamp(64px, 15vw, 240px); line-height: .82; font-weight: 900; font-stretch: 75%; letter-spacing: -.03em; text-transform: uppercase; }
.sheet__role { margin: 18px 0 clamp(22px, 3vw, 40px); font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 40px); color: var(--clay); }
.sheet__list { list-style: none; padding: 0; counter-reset: did; max-width: 60em; border-top: 1px solid rgba(246,244,238,.22); margin-bottom: 30px; }
.sheet__list li { counter-increment: did; display: grid; grid-template-columns: 3.4rem 1fr; padding: 16px 0; border-bottom: 1px solid rgba(246,244,238,.22); font-size: clamp(17px, 1.6vw, 24px); line-height: 1.35; }
.sheet__list li::before { content: counter(did, decimal-leading-zero); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--mist); padding-top: .35em; }
.sheet__close { position: absolute; top: clamp(20px, 3vw, 40px); right: var(--gutter); border: 1.5px solid currentColor; background: none; color: inherit; border-radius: 99px; padding: 10px 18px;
  font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.sheet__close:hover, .sheet__close:focus-visible { background: var(--paper); color: var(--slate); }

/* fixes after looking at the screens */
.cards--words .card b { font-size: clamp(24px, 2.5vw, 40px); line-height: 1; }
.door b { font-size: clamp(30px, 4vw, 60px); max-height: calc(100% - 44px); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
.bar nav { display: contents; }

/* portraits are never cropped through the face: tall frames, anchored at the top */
.stop__img--tall { aspect-ratio: 4 / 5; width: min(100%, 230px); object-position: 50% 12%; }
.door__img { object-position: 50% 16%; }

/* ---- larger effects ---- */
/* names fly between pages */
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: cubic-bezier(.65,.01,.05,.99); }
/* the opening: the name is uncovered from the baseline, then the rest settles in */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: name-in 1.15s cubic-bezier(.2,.8,.2,1) both; }
  .hero .roles, .hero .line, .hero .tag { animation: settle-in .8s cubic-bezier(.2,.8,.2,1) .75s both; }
  .hero .go { animation: settle-in .8s cubic-bezier(.2,.8,.2,1) .95s both; }
}
@keyframes name-in { from { clip-path: inset(100% 0 -10% 0); } to { clip-path: inset(-10% 0 -10% 0); } }
@keyframes settle-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
/* a moving band of themes */
.band-move { position: relative; z-index: 1; background: var(--paper); overflow: hidden; padding: clamp(18px, 3vw, 44px) 0 clamp(26px, 4vw, 60px); }
.band-move p { white-space: nowrap; width: max-content; font-size: clamp(54px, 9.4vw, 160px); line-height: 1; font-weight: 900; font-stretch: 75%; letter-spacing: -.03em; text-transform: uppercase; will-change: transform; }
.band-move p + p { margin-top: .04em; }
.band-move .hollow { color: var(--paper); -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; }
.band-move i { display: inline-block; width: .34em; height: .34em; margin: 0 .22em .12em; border-radius: 50%; background: var(--clay-fill); vertical-align: middle; }

#fit { padding-bottom: calc(clamp(72px, 11vw, 160px)); }
#work { padding-bottom: calc(clamp(72px, 11vw, 160px) + clamp(26px, 4.6vw, 78px)); }
#fit { border-radius: clamp(26px, 4.6vw, 78px) clamp(26px, 4.6vw, 78px) 0 0; margin-top: calc(clamp(26px, 4.6vw, 78px) * -1); }

/* ---- the menu: one button that is always in reach, opening a full screen of sections ---- */
.menu-btn { position: fixed; top: 14px; right: var(--gutter); z-index: 86; border: 0; cursor: pointer; border-radius: 99px; padding: 13px 20px; background: var(--ink); color: var(--paper);
  font: 750 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: 0; pointer-events: none; translate: 0 -14px; transition: opacity .3s, translate .45s cubic-bezier(.65,.01,.05,.99), background-color .3s; }
.menu-btn.is-on, .menu-btn.is-close { opacity: 1; pointer-events: auto; translate: 0 0; }
.menu-btn:hover, .menu-btn:focus-visible { background: var(--clay-fill); color: #fff; }
.menu-btn.is-close { position: absolute; background: var(--paper); color: var(--ink); }
.bar.is-pill { display: none; }
.menu { --clay: var(--ember); position: fixed; inset: 0; z-index: 88; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4vw; align-items: end; padding: clamp(84px, 9vw, 130px) var(--gutter) clamp(28px, 4vw, 56px);
  background: var(--slate); color: var(--paper); overflow: auto; pointer-events: none; visibility: hidden;
  clip-path: circle(0 at calc(100% - 70px) 36px); transition: clip-path .85s cubic-bezier(.65,.01,.05,.99), visibility 0s .85s; }
.menu.is-open { clip-path: circle(160% at calc(100% - 70px) 36px); pointer-events: auto; visibility: visible; transition: clip-path .85s cubic-bezier(.65,.01,.05,.99), visibility 0s; }
.menu ol { list-style: none; padding: 0; counter-reset: m; }
.menu li { counter-increment: m; overflow: hidden; }
.menu li a { display: inline-flex; align-items: baseline; gap: .35em; text-decoration: none; font-size: clamp(28px, min(5.4vw, 7.6svh), 88px); line-height: 1.02; font-weight: 900; font-stretch: 78%; letter-spacing: -.025em; text-transform: uppercase;
  translate: 0 110%; transition: translate .7s cubic-bezier(.2,.8,.2,1), color .25s, padding-left .4s cubic-bezier(.65,.01,.05,.99); }
.menu li a::before { content: counter(m, decimal-leading-zero); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--mist); translate: 0 -1.6em; font-stretch: 100%; }
.menu.is-open li a { translate: 0 0; }
.menu.is-open li:nth-child(n) a { transition-delay: calc(.12s + var(--i, 0) * .05s), 0s, 0s; }
.menu li a:hover, .menu li a:focus-visible { color: var(--clay); padding-left: .18em; }
.menu__side { display: grid; gap: 16px; justify-items: start; font-size: 14px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; }
.menu__side img { width: min(100%, 360px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 14%; filter: grayscale(1); }
@media (max-width: 760px) { .menu-btn { opacity: 1; pointer-events: auto; translate: 0 0; top: 10px; } .bar .cv { display: none; } .menu { grid-template-columns: 1fr; } .menu__side img { display: none; } }

/* the lounge strip: the room, and one portrait */
.strip--two { grid-template-columns: 1.7fr 1fr; }
.strip--two figure:last-child img { object-position: 50% 18%; }

.strip--one { grid-template-columns: 1fr; }
.strip--one img { height: clamp(220px, 34vw, 520px); }

/* pictures chosen by code on 19 November */
.strip--two figure:last-child img { object-position: 50% 30%; }
.author { margin: 30px 0 0; width: min(100%, 250px); }
.author img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; filter: none; }
.author figcaption { margin-top: 8px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
.menu__side img { object-position: 50% 22%; }

/* a career step with a picture: the picture stands beside the text, so the step keeps its height
   and the year and title stay where they belong */
.stop--pic { width: clamp(470px, 46vw, 690px); display: grid; grid-template-columns: clamp(130px, 12vw, 190px) minmax(0, 1fr); column-gap: clamp(16px, 2vw, 28px); align-content: start; }
.stop--pic > * { grid-column: 2; }
.stop--pic .stop__img { grid-column: 1; grid-row: 1 / span 6; margin: 0; width: 100%; align-self: start; }
@media (max-width: 760px) { .stop--pic { width: auto; display: block; } .stop--pic .stop__img { margin-top: 18px; width: min(100%, 230px); } }

/* the career sits lower and climbs more gently, so the screen is filled */
.track__camera { padding-bottom: 21svh; }
.stop { transform: translateY(calc(var(--level, 0) * -4.2svh)); }
@media (max-width: 760px) { .stop { transform: none; } .track__camera { padding-bottom: 64px; } }

/* the Teleperformance door: he stands left of centre, clear of the name, and the lounge screen opens beside him */
.door--wide-photo .door__img { object-position: 10% 50%; }
/* the workshops room photo keeps him in frame at the right */
.strip--two figure:first-child img { object-position: 100% 50%; }
