@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/plex-arabic-300.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --stage: #000;
  --ink: #f2f0ea;
  --mute: #a19e95;
  --rule: #2b2a27;
  --stone: #d7d3c9;
  --stone-ink: #141412;
  --stone-mute: #55534d;
  --stone-rule: #b6b2a8;
  --green: #9fd2ae;
  --green-deep: #1d5a41;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--ink);
  font-family: "Hanken Grotesk", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.stone :focus-visible { outline-color: var(--green-deep); }
::selection { background: var(--green); color: var(--stone-ink); }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--stage); padding: 10px 14px; border-radius: 4px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Navigation */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px var(--gutter);
  font-size: 16px;
}
.nav .me { font-weight: 500; text-decoration: none; }
.nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border-radius: 4px; border: 1px solid currentColor;
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.btn:hover { background: var(--ink); color: var(--stage); }
.btn.solid { background: var(--ink); color: var(--stage); border-color: var(--ink); }
.btn.solid:hover { background: var(--green); border-color: var(--green); }

/* Opening */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero picture, .hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero img {
  object-fit: cover; object-position: 50% 38%;
  transform-origin: 50% 60%;
  will-change: transform;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0) 62%);
}
.hero .copy {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  padding-bottom: clamp(32px, 6vh, 64px);
}
.hero h1 {
  font-weight: 300; font-size: clamp(38px, 5vw, 80px);
  line-height: 1.02; letter-spacing: -0.025em; max-width: 13.5em;
}
.hero .role { margin-top: 22px; color: #d9d6ce; font-size: clamp(17px, 1.4vw, 20px); max-width: 34em; }
.caption { font-size: 14px; line-height: 1.4; color: var(--mute); }
.hero .caption { color: #c9c6be; text-align: end; max-width: 15em; }

/* Sections */
section { padding: clamp(88px, 13vw, 176px) 0; }
.stone { background: var(--stone); color: var(--stone-ink); }
.stone .caption, .stone .mute { color: var(--stone-mute); }
.stone a:hover { text-decoration-color: var(--green-deep); }
.stone .btn:hover { background: var(--stone-ink); color: var(--stone); }
.mute { color: var(--mute); }

h2 {
  font-weight: 300; font-size: clamp(34px, 4vw, 60px);
  line-height: 1.05; letter-spacing: -0.02em; max-width: 14em;
}
.lede { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.45; max-width: 31em; }
.body p + p { margin-top: 1.1em; }
.body { max-width: 36em; }

.split {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px);
  align-items: start;
}
.split > .text { grid-column: 1 / span 6; }
.split > .text h2 { margin-bottom: 40px; }
.split > figure { grid-column: 8 / span 5; margin: 0; }
.split > figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
.split > figure figcaption { margin-top: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 36px; }

.quote {
  font-weight: 300; font-size: clamp(36px, 5.4vw, 88px);
  line-height: 1; letter-spacing: -0.03em; max-width: 12em;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 48px); }
.cols > h2 { grid-column: 1 / span 5; }
.cols > .body { grid-column: 7 / span 6; }

/* Ledger */
.ledger { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); }
.ledger li {
  list-style: none;
  display: grid; grid-template-columns: 8.5rem minmax(0, 4fr) minmax(0, 6fr); gap: 8px 32px;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.ledger { padding: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; }
.ledger .when { color: var(--mute); font-variant-numeric: tabular-nums; }
.ledger h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.ledger .what { color: var(--mute); font-size: 16px; }
.ledger p { max-width: 34em; }
.ledger p a { white-space: nowrap; }

/* Story */
.story .lede + .body { margin-top: 32px; }
.story .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 48px); }
.story h2 { grid-column: 1 / span 5; }
.story .text { grid-column: 7 / span 6; }

/* Writing list */
.list { margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--stone-rule); }
.list li {
  list-style: none; display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 6px 32px;
  padding: 22px 0; border-bottom: 1px solid var(--stone-rule); align-items: baseline;
}
.list .when { color: var(--stone-mute); font-variant-numeric: tabular-nums; }
.list a { font-size: 21px; font-weight: 400; text-decoration: none; }
.list a:hover { text-decoration: underline; }
.list .where { color: var(--stone-mute); font-size: 15px; }
.on-dark .list { border-top-color: var(--rule); }
.on-dark .list li { border-bottom-color: var(--rule); }
.on-dark .list .when, .on-dark .list .where { color: var(--mute); }

/* Contact */
.contact h2 { font-size: clamp(44px, 7vw, 120px); letter-spacing: -0.035em; max-width: none; }
.contact .lede { margin-top: 28px; color: var(--mute); }
.contact .links { margin-top: 44px; align-items: center; }

footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 15px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }

/* Article */
.page-head { padding: clamp(140px, 18vw, 220px) 0 clamp(48px, 6vw, 80px); }
.page-head h1 { font-weight: 300; font-size: clamp(38px, 5vw, 76px); line-height: 1.04; letter-spacing: -0.025em; max-width: 14em; }
.page-head .meta { margin-top: 24px; color: var(--mute); }
.article { padding-top: 0; }
.article .body { font-size: 20px; line-height: 1.65; max-width: 34em; }
.article .body p + p { margin-top: 1.2em; }
.article .note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--mute); font-size: 16px; max-width: 40em; }

/* Arabic: no tracking (it breaks the joins), more leading for the taller letterforms */
:lang(ar) { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] .hero h1 { line-height: 1.25; font-size: clamp(36px, 4.6vw, 74px); }
html[lang="ar"] h2, html[lang="ar"] .quote { line-height: 1.3; }
html[lang="ar"] .lede { line-height: 1.75; }
html[lang="ar"] .article .body { line-height: 1.9; }
[dir="rtl"] .ledger .when, [dir="rtl"] .list .when { direction: ltr; text-align: right; unicode-bidi: isolate; }

/* Motion: only when the visitor allows it and scripts run */
.m [data-reveal="text"] { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.m [data-reveal="pic"] { clip-path: inset(14% 0 0 0); transition: clip-path 1200ms var(--ease); }
.m [data-reveal="pic"] img { transform: scale(1.12); transition: transform 1600ms var(--ease); }
.m [data-reveal].in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.m [data-reveal].in img { transform: none; }

@media (max-width: 900px) {
  .split > .text, .split > figure, .cols > h2, .cols > .body, .story h2, .story .text { grid-column: 1 / -1; }
  .split > figure { margin-top: 48px; }
  .ledger li { grid-template-columns: 1fr; padding: 22px 0; }
  .list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { padding-top: 18px; padding-bottom: 18px; }
  .nav ul { gap: 18px; }
  .nav .hide-sm { display: none; }
  .hero img { object-position: 48% 40%; }
  .hero .copy { grid-template-columns: 1fr; gap: 20px; }
  .hero .caption { text-align: start; }
  .article .body { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
