@font-face { font-family: 'Hommage'; src: url(/fonts/bw-hommage.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(/fonts/source-sans-3.woff2) format('woff2'); font-weight: 200 900; font-display: swap; }

:root {
  --paper: #faf8f5;
  --ink: #2e2e2e;
  --mute: #8b8681;
  --dark: #161514;
  --margin: 24px;
  --hd: 68px;
  --radius: 4px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.4 'Source Sans 3', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* header */
.hd { position: fixed; inset: 0 0 auto; z-index: 900; height: var(--hd); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--margin); pointer-events: none; background: rgba(250, 248, 245, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hd > * { pointer-events: auto; }
.hd-logo { font: 400 24px/1 'Hommage'; letter-spacing: .03em; white-space: nowrap; opacity: 0; transition: opacity .5s var(--ease); }
.hd.logo-on .hd-logo { opacity: 1; }
.hd-nav { display: flex; gap: 44px; font-size: 22px; font-weight: 400; }
.hd-menu { display: none; font: inherit; font-size: 17px; color: var(--ink); background: none; border: 0; padding: 8px 0; cursor: pointer; }
html.no-scroll { overflow: hidden; }
.hd-nav a { position: relative; }
.hd-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.hd-nav a:hover::after, .hd-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

/* intro: the name stays, the line climbs over it */
.intro { position: relative; padding: 0 var(--margin); overflow-x: clip; }
.intro-name { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding-bottom: 22vh; padding-bottom: 22svh; transition: opacity .5s var(--ease); }   /* small viewport height: centred on iPhone too; name a little high so name + line sit centred together */
.intro.covered .intro-name { opacity: 0; }
.name { margin: 0; padding: 0 var(--margin); font: 400 clamp(40px, 7.2vw, 132px)/1 'Hommage'; text-wrap: balance; letter-spacing: .01em; text-align: center; animation: rise 1.3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6%); } to { opacity: 1; transform: none; } }
.intro-after { position: relative; z-index: 2; margin-top: -40vh; margin-top: -40svh; padding-bottom: 18vh; }
.intro-line { margin: 0 auto; max-width: 30ch; text-align: center; font: 300 40px/1.18 'Source Sans 3'; text-wrap: balance; }

/* projects: title sticks, the main image climbs over it and sticks, satellites scroll over, the line sits at the bottom */
.work { position: relative; }
.proj { position: relative; display: block; min-height: 300vh; min-height: 300lvh; }
.p-title { position: sticky; top: 0; z-index: 100; height: 100vh; height: 100lvh; display: flex; align-items: center; justify-content: center; padding: 0 var(--margin); }
.p-title h2 { margin: 0; font: 400 clamp(56px, 10vw, 150px)/1.05 'Hommage'; letter-spacing: .01em; text-align: center; text-wrap: balance; }
.p-media { position: sticky; top: 0; z-index: 100; height: 100vh; height: 100lvh; display: grid; place-items: center; padding: var(--hd) var(--margin) 110px; }
.p-frame { position: relative; width: min(64vw, 1150px); border-radius: var(--radius); overflow: hidden; background: #e9e5df; }
.p-frame img, .p-frame video { width: 100%; height: auto; max-height: calc(100lvh - var(--hd) - 140px); object-fit: cover; }
.p-collage { position: relative; z-index: 200; padding: 0 var(--margin) 70vh; }
.collage { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); grid-template-rows: repeat(24, minmax(0, 1fr)); gap: 16px; aspect-ratio: 1; }
.c-item { position: relative; }
.c-item > * { position: absolute; top: 0; left: 0; width: 100%; height: auto; border-radius: var(--radius); overflow: hidden; background: #e9e5df; transition: transform .6s var(--ease); }
.proj:hover .c-item > * { transform: translateY(-4px); }
.p-line { position: sticky; bottom: 0; z-index: 150; padding: 16px var(--margin) 28px; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.proj.line-on .p-line { opacity: 1; }
.p-line p { margin: 0; max-width: 34ch; font: 300 40px/1.175 'Source Sans 3'; text-wrap: balance; }

/* after the work */
.all { display: flex; justify-content: center; margin: 10rem 0; }
.pill { position: relative; display: inline-block; font-size: 22px; font-weight: 400; line-height: 1; padding: 14px 22px; border: 1px solid var(--ink); border-radius: 3px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.pill:hover { background: var(--ink); color: var(--paper); }
.books { padding: 0 var(--margin); margin: 10rem 0; }
.books-h { margin: 0 0 6rem; font: 400 clamp(48px, 6vw, 84px)/1 'Hommage'; }
.books-page { margin-top: 6rem; }
.books-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.book { display: flex; flex-direction: column; }   /* the edition links sit on one line, whatever the title length */
.book .book-links { margin-top: auto; padding-top: 12px; }
.book-cover { position: relative; display: block; aspect-ratio: 800 / 1236; border-radius: var(--radius); overflow: hidden; background: #e9e5df; transition: transform .6s var(--ease); }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.book-cover .it { opacity: 0; }
.book-cover:hover .it { opacity: 1; }
.book h3 span { color: var(--mute); }
.book h3 { margin: 18px 0 2px; font-size: 24px; font-weight: 400; }
.book-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.prose .book-links { justify-content: center; margin-top: 8px; }
.lang-pill { display: inline-block; font-size: 16px; line-height: 1; padding: 9px 14px; border-radius: 3px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease); }
.lang-pill.it { background: transparent; color: var(--ink); }
.lang-pill:hover { background: transparent; color: var(--ink); }
.lang-pill.it:hover { background: var(--ink); color: var(--paper); }

/* footer */
.ft { background: var(--dark); color: #f3f0eb; }
.ticker { overflow: hidden; background: var(--paper); color: var(--ink); border-top: 1px solid #e6e1da; padding: 28px 0; }
.ticker-track { display: flex; width: max-content; animation: tick 19s linear infinite; font: 400 28px/1 'Hommage'; will-change: transform; }   /* kept under the size Safari can animate on Retina screens */
.ticker-half { display: flex; flex: none; }
.ticker-half > * { padding-right: 64px; white-space: nowrap; }
@keyframes tick { to { transform: translateX(-50%); } }
.ft-body { padding: 44px var(--margin) 28px; display: grid; grid-template-columns: 9fr 3fr; gap: 32px 24px; }
.ft-big { margin: 0; max-width: 26ch; font: 300 40px/1.18 'Source Sans 3'; }
.ft-mail { font-size: 26px; border-bottom: 1px solid rgba(243, 240, 235, .35); }
.ft-contacts { margin: 0; display: grid; gap: 18px; font-size: 16px; align-content: start; }
.ft-contacts a { border-bottom: 1px solid rgba(243, 240, 235, .3); }
.ft-contacts a:hover { border-color: currentColor; }
.ft-contacts dt { color: #8f8a84; }
.ft-contacts dd { margin: 0; }
.ft-legal { grid-column: 1 / -1; margin: 40px 0 0; font-size: 14px; color: #8f8a84; }

/* inner pages */
.page-head { padding: calc(var(--hd) + 7vh) var(--margin) 0; text-align: center; }
.page-head h1 { margin: 0; font: 400 clamp(56px, 7vw, 104px)/1 'Hommage'; letter-spacing: .01em; }
.work-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 56px 0 0; text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: flex-start; }
.w-search input { font: inherit; font-size: 16px; color: var(--ink); width: 240px; padding: 5px 14px 5px 34px; border: 1px solid #d8d2ca; border-radius: 3px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b8681' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 12px 50%; outline: none; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.w-search input:focus { border-color: var(--ink); background-color: #fff; }
.w-search input::placeholder { color: var(--mute); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chips button { font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 1px solid #d8d2ca; border-radius: 3px; padding: 4px 14px; cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.w-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 120px; align-items: start; padding: 56px var(--margin) 10rem; }
.w-grid.fade .w-card { animation: show .6s var(--ease) both; }
@keyframes show { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.w-card[hidden] { display: none; }
.w-media { border-radius: var(--radius); overflow: hidden; background: #e9e5df; }
.w-media img, .w-media video { width: 100%; height: auto; transition: transform .8s var(--ease); }
.w-link:hover .w-media img, .w-link:hover .w-media video { transform: scale(1.02); }
.w-card h2 { margin: 18px 0 2px; font-size: 24px; font-weight: 400; }
.w-card p { margin: 0; max-width: 34ch; font-size: 19px; font-weight: 300; font-style: italic; color: #5d5852; }
.w-empty { text-align: center; color: var(--mute); padding: 0 0 10rem; }
.prose { max-width: 860px; margin: 56px auto 0; padding: 0 var(--margin); text-align: center; }
.prose p { max-width: 62ch; margin: 0 auto 22px; font-size: 22px; line-height: 1.5; }
.prose .lead { max-width: 30ch; margin: 0 auto 36px; font: 300 40px/1.18 'Source Sans 3'; text-wrap: balance; }
.prose .links a { border-bottom: 1px solid rgba(46, 46, 46, .3); }
.prose .links a:hover { border-color: currentColor; }
.about-block { max-width: 1240px; margin: 10rem auto 0; padding: 0 var(--margin); }
.about-block h2 { margin: 0 0 40px; font: 400 clamp(36px, 4vw, 56px)/1 'Hommage'; }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; font-size: 24px; font-weight: 300; }
.services a { border-bottom: 1px solid rgba(46, 46, 46, .3); }
.about-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 10rem; }
.about-pair .services { grid-template-columns: 1fr; }
.about-pair p { font-size: 22px; font-weight: 300; margin: 0; max-width: 30ch; }
.contact { max-width: 860px; margin: 56px auto 10rem; padding: 0 var(--margin); text-align: center; }
.contact-list { margin: 0; display: grid; gap: 22px; font-size: 20px; }
.contact-list dt { color: var(--mute); font-size: 16px; }
.contact-list dd { margin: 0; }
.contact-list a { border-bottom: 1px solid rgba(46, 46, 46, .3); }


.legal { text-align: left; }
.legal .lead { margin-left: 0; }
.legal p { margin-left: 0; }
.legal h2 { margin: 48px 0 12px; font-size: 22px; font-weight: 600; }
.legal a, .ft-legal a { border-bottom: 1px solid currentColor; }
.legal .updated { color: var(--mute); font-size: 17px; }

/* project pages: a 12-column grid, hairlines, facts in columns, images as equal plates */
.case { --gap: 24px; padding: 0 var(--margin); }
.case-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid #d9d3cb; padding-top: 20px; }
.case-name { padding: calc(var(--hd) + 8vh) 0 40px; }
.case-name h1 { margin: 0; font: 400 clamp(44px, 6vw, 92px)/1.05 'Hommage'; letter-spacing: .01em; }
.case-open { align-items: start; }
.case-line { grid-column: 1 / span 4; margin: 0; max-width: 20ch; font: 300 clamp(24px, 2.2vw, 32px)/1.2 'Source Sans 3'; text-wrap: balance; }
.plate { margin: 0; }
.plate-img { position: relative; aspect-ratio: 3 / 2; }   /* no frame: the whole image, never cropped, sits on the caption line */
.plate-img img, .plate-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left bottom; }
.plate figcaption { margin-top: 8px; font-size: 13px; letter-spacing: .06em; color: var(--mute); font-variant-numeric: tabular-nums; }
.plate-hero { grid-column: 5 / span 8; }
.case-facts { margin-top: 64px; }
.case-meta { grid-column: 1 / span 4; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gap); font-size: 16px; align-content: start; }
.case-meta dt { color: var(--mute); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.case-meta dd { margin: 0; }
.case-meta ul { list-style: none; margin: 0; padding: 0; }
.case-meta a { border-bottom: 1px solid rgba(46, 46, 46, .3); }
.case-text { grid-column: 5 / span 6; }
.case-text p { margin: 0; font-size: 20px; line-height: 1.55; max-width: 60ch; }
.case-films { margin-top: 64px; }
.plate-film { grid-column: 5 / span 8; }
.plate-film .plate-img { aspect-ratio: auto; }
.plate-film video { position: static; width: 100%; height: auto; background: #000; }
.case-plates { margin-top: 64px; row-gap: 40px; align-items: start; }
.case-plates .plate { grid-column: span 4; }
.case-next { margin: 96px 0 0; padding: 20px 0 8rem; align-items: baseline; }
.case-next span { grid-column: 1 / span 4; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.case-next strong { grid-column: 5 / span 8; font: 400 clamp(36px, 4.4vw, 64px)/1.05 'Hommage'; transition: opacity .4s var(--ease); }
.case-next:hover strong { opacity: .6; }

/* phones and narrow windows */
@media (max-width: 760px) {
  :root { --margin: 16px; --hd: 56px; }
  .hd { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(250, 248, 245, .96); }   /* a filter would trap the full-screen menu inside the bar */
  .hd-logo { font-size: 16px; position: relative; z-index: 2; }
  .hd-menu { display: block; position: relative; z-index: 2; }
  .hd-nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 18px; padding: 0 var(--margin); background: var(--paper); font: 400 54px/1.1 'Hommage'; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
  .hd.menu-open .hd-nav { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
  .hd.menu-open { background: var(--paper); }
  .hd.menu-open .hd-logo { opacity: 1; }
  .hd-nav a::after { display: none; }
  .intro-line { font-size: 26px; }
  .p-frame { width: 100%; }
  .p-media { padding-bottom: 120px; }
  .collage { display: flex; flex-direction: column; gap: 56px; aspect-ratio: auto; padding-top: 30vh; }
  .c-item { width: 58%; }
  .c-item:nth-child(even) { align-self: flex-end; }
  .c-item > * { position: static; }
  .p-collage { padding-bottom: 60vh; }
  .p-line p { font-size: 24px; }
  .all, .books { margin: 6rem 0; }
  .books-h { margin-bottom: 3rem; }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .book h3 { font-size: 19px; } .book p { font-size: 15px; }
  .ticker-track { font-size: 24px; }
  .ticker-half > :nth-child(n+4) { display: none; }   /* one phrase per half: the strip stays narrow enough for iPhone Safari to animate */
  .ft-body { grid-template-columns: 1fr; }
  .work-tools { margin-top: 36px; }
  .w-search, .w-search input { width: 100%; }
  .case { --gap: 16px; }
  .case-name { padding-top: calc(var(--hd) + 5vh); }
  .case-line, .plate-hero, .case-meta, .case-text, .case-next span, .case-next strong { grid-column: 1 / -1; }
  .case-line { margin-bottom: 24px; }
  .case-facts { margin-top: 40px; }
  .case-meta { margin-bottom: 32px; }
  .case-text p { font-size: 18px; }
  .case-plates { margin-top: 40px; row-gap: 28px; }
  .case-plates .plate, .plate-film { grid-column: span 12; }
  .case-next { margin-top: 64px; padding-bottom: 5rem; }
  .case-next strong { margin-top: 8px; }
  .chips button { font-size: 15px; }
  .w-grid { display: flex; flex-direction: column; gap: 72px; padding-top: 40px; }
  .w-card { width: 100%; }
  .w-card[data-i="1"] { width: 78%; align-self: flex-end; }
  .w-card[data-i="2"] { width: 86%; }
  .prose .lead { font-size: 28px; } .prose p { font-size: 19px; }
  .services { grid-template-columns: 1fr; font-size: 20px; }
  .about-pair { grid-template-columns: 1fr; gap: 64px; }
  .about-block { margin-top: 6rem; }
  .lang-pill { font-size: 15px; }
  .ft-big { font-size: 26px; }
  .ft-mail { font-size: 20px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .case-plates .plate { grid-column: span 6; }
  .case-line { grid-column: 1 / -1; margin-bottom: 24px; }
  .plate-hero { grid-column: 1 / -1; }
  .case-meta { grid-column: 1 / span 5; }
  .case-text { grid-column: 6 / span 7; }
  .p-frame { width: 78vw; }
  .p-line p, .intro-line, .ft-big { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .name { animation: none; }
  .ticker-track { animation-duration: 60s; }   /* still moves, slowly: it carries the contacts */
}
