/* Lyon Arabic Display: this font software is the property of Commercial Type.
   Copyright (C) 2026 Schwartzco Inc. License 2611-ZAPVDA. http://commercialtype.com/eula */
@font-face {
  font-family: "Lyon Arabic Display";
  src: url("fonts/LyonArabicDisplay-Regular-Web.woff2") format("woff2");
  font-weight: 400;
}
/* The inner pages share the landing page's world: lines of noise in a black room, a different pattern
   on each page, with the same type, dots, menu and footer. */
:root {
  color-scheme: dark;
  --black: #030303;
  --white: #ffffff;
  --rule: rgba(255, 255, 255, 0.42);
  --serif: "Lyon Arabic Display", "Times New Roman", serif;
  --gutter: clamp(16px, 1.8vw, 26px);
  --heading: clamp(36px, 6.3vw, 108px);
  --title: clamp(24px, 2.7vw, 42px);
}
* { box-sizing: border-box; }
html { background: var(--black); }
body {
  margin: 0; position: relative; color: var(--white);
  background: var(--black);
  font: 400 14px/1.35 var(--serif); letter-spacing: 0.04em; font-synthesis: none;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
/* The cursor's leading dot is drawn by the computer itself, like the normal arrow, so it never trails the mouse; the particles follow it */
.has-cursor, .has-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='3.2' fill='white' fill-opacity='.22'/%3E%3Ccircle cx='8' cy='8' r='1.7' fill='white' fill-opacity='.92'/%3E%3C/svg%3E") 8 8, auto !important; }

/* Background: the lines, or a work's photo while its title is hovered */
.slides { position: fixed; inset: 0; z-index: 0; overflow: hidden; opacity: 0; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease; }
.slides img.is-on { opacity: 1; }
.slides::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
#page-lines { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#cursor-noise { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
main, .end { position: relative; z-index: 1; }

/* Menu */
.home { mix-blend-mode: difference; position: fixed; z-index: 5; top: calc(var(--gutter) + env(safe-area-inset-top, 0px)); left: var(--gutter); }
/* Under the name at the top of the page; it scrolls away so it doesn't sit over the titles */
.notice { position: absolute; z-index: 5; top: calc(var(--gutter) + env(safe-area-inset-top, 0px) + 1.9em); left: var(--gutter); max-width: 42vw; margin: 0; }
.nav { mix-blend-mode: difference; position: fixed; z-index: 5; top: calc(var(--gutter) + env(safe-area-inset-top, 0px)); right: var(--gutter); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.nav__links { display: flex; gap: 14px; }
.out:hover, .home:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn { display: inline-block; padding: 7px 12px; border: 1px solid var(--white); }
.btn:hover { background: var(--white); color: #333; }

/* Page heading, the same as the landing page's */
.page-head { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(68vh, 680px); padding: 120px var(--gutter) clamp(24px, 4vh, 44px); overflow-x: clip; }
.page-title { margin: 0; font: 400 var(--heading)/0.92 var(--serif); letter-spacing: -0.065em; word-spacing: 0.05em; text-wrap: balance; }
.page-title span { display: inline-block; }
.page-head.has-filters { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 18px clamp(24px, 3vw, 48px); }
.page-head.has-filters .page-title { flex: none; }
.filters { position: relative; z-index: 3; margin-bottom: 0.45em; }
.filters__open { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--white); background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.filters__open::after { content: ""; flex: none; width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform 0.2s, margin 0.2s; }
.filters__open[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.filters__open:hover { background: var(--white); color: #333; }
.filters__menu { position: absolute; left: 0; top: calc(100% + 6px); display: flex; gap: clamp(28px, 4vw, 56px); width: max-content; max-width: calc(100vw - var(--gutter) * 2); padding: 14px 16px; border: 1px solid var(--white); background: var(--black); }
.filters__menu[hidden] { display: none; }
.filters__name { margin-bottom: 8px; opacity: 0.6; }
.filters__list { list-style: none; margin: 0; padding: 0; }
.filter { display: block; position: relative; margin: 0; padding: 2px 0 2px 16px; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.filter--sub { margin-left: 16px; }
.filter::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--white); box-shadow: 0 0 8px rgba(255, 255, 255, 0.55); opacity: 0; transition: opacity 0.25s; }
.filter[aria-pressed="true"]::before { opacity: 1; }
.filter:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-note { margin-top: 18px; max-width: 58ch; font-size: clamp(14px, 1.1vw, 17px); }
.title__particles { position: absolute; pointer-events: none; }

/* Dots, the same as the landing page's */
.node__dot { position: absolute; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--white); box-shadow: 0 0 12px rgba(255, 255, 255, 0.55); transition: transform 0.25s; }

/* A landing page title's projects, laid out open */
.page-head--short { min-height: min(46vh, 460px); }
.opens { padding: 0 var(--gutter); }
.opens__sub + .opens__sub { padding-top: 78px; }
.opens__sub > .strand__name { margin-top: 30px; }
.opened { padding: 78px 0; }
.opened:first-child { padding-top: 24px; }
.opens__sub .opened:first-of-type { padding-top: 40px; }
.opened__title { margin: 0; font: 400 clamp(30px, 4.2vw, 68px)/0.98 var(--serif); letter-spacing: -0.04em; word-spacing: 0.05em; text-wrap: balance; }
.opened__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.08em; }
.opened__title sup { margin-left: 8px; font-size: 13px; line-height: 1; vertical-align: baseline; letter-spacing: 0; }
.opened__role { margin-top: 12px; font-size: clamp(14px, 1.1vw, 17px); }
.opened__text { margin-top: 14px; max-width: 62ch; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.32; letter-spacing: 0.015em; }
.opened__media { display: block; margin-top: 24px; }
.opened .embed { margin-top: 24px; }
.opened__more { display: inline-block; margin-top: 18px; padding: 7px 12px; border: 1px solid var(--white); }
.opened__more:hover { background: var(--white); color: #333; }
.see-all { padding: 20px var(--gutter) 0; text-align: center; }

/* Contact */
.page-head--contact { min-height: calc(100vh - 110px); min-height: calc(100svh - 110px); }
.page-head--contact .page-title { max-width: 15em; text-wrap: pretty; }
.page-head--contact .page-title a { display: block; margin-top: 0.3em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.1em; }
.page-head--contact .page-title a:hover { text-decoration-thickness: 2px; }

/* All work */
.strand { padding: 78px var(--gutter); scroll-margin-top: 70px; }
.strand__name { margin: 0 0 23px; font: 400 clamp(30px, 4.2vw, 68px)/0.96 var(--serif); letter-spacing: -0.04em; word-spacing: 0.05em; }
.strand__name:has(+ .substrand) { margin-bottom: 61px; }
.substrand { scroll-margin-top: 70px; }
.substrand + .substrand { margin-top: 60px; }
.substrand__name { margin: 0 0 23px; font: 400 clamp(25px, 3.1vw, 48px)/1 var(--serif); letter-spacing: -0.03em; word-spacing: 0.05em; }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 0; list-style: none; margin: 0; padding: 0; }
.works li:nth-child(3n + 2) { margin-top: 25px; }
.works li:nth-child(3n) { margin-top: 11px; }
.work-link { position: relative; display: block; width: fit-content; max-width: 100%; padding-left: 22px; }
.work-link .node__dot { left: 0; top: calc(var(--title) * 0.5 - 5px); }
.work-link:hover .node__dot, .work-link:focus-visible .node__dot { transform: scale(1.8); }
.work-link:hover .work-link__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.work-link__title { display: block; font-size: var(--title); line-height: 1; letter-spacing: 0.01em; text-wrap: balance; }
.work-link__title sup { margin-left: 6px; font-size: 11px; line-height: 1; vertical-align: baseline; letter-spacing: 0; }
.work-link__thumb { display: none; }

/* Project */
.project__body { padding: 0 var(--gutter); }
.project__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px 40px; padding-bottom: clamp(30px, 6vh, 60px); }
.project__meta div + div { margin-top: 6px; }
.project__text p { max-width: 62ch; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.32; letter-spacing: 0.015em; }
.project__text p + p { margin-top: 1em; }
.project__facts { margin-top: 20px; max-width: 70ch; }
.project__facts div + div { margin-top: 6px; }
.project__warn { font-weight: 400; }
.project__text .project__shown { margin-top: 1em; }
.project__text .project__shown ul { list-style: none; margin: 0.35em 0 0; padding: 0; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.32; letter-spacing: 0.015em; }
.project__text .project__article { margin-top: 1em; }
.project__text .project__article + .project__article { margin-top: 0.25em; }
.project__article a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.project__article a:hover { text-decoration-thickness: 2px; }
.project__text .project__note { margin-top: 1.4em; }
.project__quote { margin: 1em 0 0; }
.project__quote footer { margin-top: 6px; }
.section__name { margin: clamp(30px, 6vh, 60px) 0 16px; font: 400 clamp(30px, 4.2vw, 68px)/0.96 var(--serif); letter-spacing: -0.04em; }
.embed { aspect-ratio: 16 / 9; margin-bottom: 10px; background: #0b0b0b; }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
/* A PDF read as a book */
.book-reader { margin-bottom: 36px; }
/* Text under a book, introducing the photos that follow */
.project__part { margin-bottom: 36px; }
/* A video at the end of a page, with a line about it */
.project__end { margin-top: 36px; }
.project__caption { max-width: 62ch; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.32; letter-spacing: 0.015em; }
.book { position: relative; width: min(100%, calc(84vh * 1.2963)); aspect-ratio: 280 / 216; margin: 0 auto; perspective: 2600px; touch-action: pan-y; user-select: none; cursor: pointer; outline-offset: 6px; }
.book__turner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.85s cubic-bezier(0.3, 0.7, 0.25, 1); }
.sheet { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-style: preserve-3d; transform-origin: left center; transition: transform 0.85s cubic-bezier(0.3, 0.7, 0.25, 1); }
.sheet.is-turned { transform: rotateY(-180deg); }
.sheet__face { position: absolute; inset: 0; overflow: hidden; background: #050505; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sheet__face--back { transform: rotateY(180deg); }
.sheet__face img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.book--still .sheet, .book--still .book__turner { transition: none; }
.book--single { width: min(100%, calc(84vh * 0.648)); aspect-ratio: 140 / 216; overflow: hidden; perspective: 1400px; background: #050505; }
.book__page, .book__leaf { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.book__leaf { transform-origin: left center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book__leaf--out { animation: leaf-out 0.55s ease-in forwards; }
.book__leaf--in { animation: leaf-in 0.55s ease-out forwards; }
@keyframes leaf-out { to { transform: rotateY(-95deg); } }
@keyframes leaf-in { from { transform: rotateY(-95deg); } }
.book__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 16px; }
.book__button { display: inline-block; padding: 7px 12px; border: 1px solid var(--white); background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.book__button:hover:not(:disabled) { background: var(--white); color: #333; }
.book__button:disabled { opacity: 0.35; cursor: default; }
.book__where { min-width: 9.5em; text-align: center; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .sheet, .book__turner { transition: none; }
}
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery::after { content: ""; flex-grow: 999; }
.gallery figure { margin: 0; min-width: 0; background: #0b0b0b; }
.gallery img, .gallery video { display: block; width: 100%; height: 100%; object-fit: cover; }
.has-cursor .gallery video { cursor: auto !important; }
.missing { display: block; margin-top: 24px; padding: 18px; border: 1px dashed var(--rule); text-align: center; }
.next { position: relative; display: block; padding: clamp(70px, 14vh, 140px) var(--gutter) 40px; text-align: right; }
.next__label { display: block; margin-bottom: 8px; }
.next__title { display: block; font: 400 var(--heading)/0.92 var(--serif); letter-spacing: -0.065em; word-spacing: 0.05em; text-wrap: balance; }
.next:hover .next__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.08em; }

/* About */
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 60px); padding: 0 var(--gutter); align-items: start; }
.about__bio p { max-width: 62ch; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.32; letter-spacing: 0.015em; }
.about__bio p + p { margin-top: 1em; }
.about__photo { width: 72%; height: auto; margin-top: clamp(30px, 5vh, 54px); }
.about__name { margin: 0 0 12px; font: 400 clamp(26px, 2.7vw, 42px)/1 var(--serif); letter-spacing: -0.02em; }
.about__list + .about__name { margin-top: 36px; }
.about__list { list-style: none; margin: 0; padding: 0; }
.about__list li { padding: 8px 0; border-top: 1px solid var(--rule); }
.about__list span { display: block; opacity: 0.75; }

/* Footer, the same as the landing page's */
.end { padding: clamp(60px, 12vh, 120px) var(--gutter) var(--gutter); scroll-margin-top: 80px; }
.foot { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 18px 30px; padding-top: 12px; border-top: 1px solid var(--rule); line-height: 1.4; }
.foot span { display: block; }

@media (max-width: 1100px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works li:nth-child(n) { margin-top: 0; }
  .works li:nth-child(2n) { margin-top: 25px; }
}
@media (max-width: 760px) {
  :root { --title: 26px; }
  .home { top: calc(16px + env(safe-area-inset-top, 0px)); }
  .notice { top: calc(16px + env(safe-area-inset-top, 0px) + 1.9em); }
  .nav__links { gap: 10px; }
  .page-head { padding-top: 130px; min-height: 60vh; }
  .page-head--short { min-height: 36vh; }
  .book__where { min-width: 0; }
  .opened { padding: 48px 0; }
  .opened__media figure:nth-child(n + 3) { display: none; }
  .page-head.has-filters { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .filters { margin-bottom: 0; }
  .filters__menu { flex-direction: column; gap: 14px; width: calc(100vw - var(--gutter) * 2); }
  .strand { padding: 48px var(--gutter); }
  .strand__name:has(+ .substrand) { margin-bottom: 34px; }
  .substrand + .substrand { margin-top: 40px; }
  .works { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .works li:nth-child(n) { margin-top: 0; }
  .work-link__thumb { display: block; width: 96px; height: 64px; margin-top: 10px; object-fit: cover; }
  .project__info, .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__photo { width: 100%; }
  .gallery figure { flex-basis: 100% !important; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .node__dot { transition: none; }
}
