:root {
  --bone: #faf6ef;
  --bone-2: #f3ede4;
  --ink: #15100b;
  --ink-2: #221b14;
  --ink-3: #362d23;
  --mute: #6b5f50;
  --line: #e0d6c7;
  --gold: #dfaf4c;
  --gold-lit: #ebc878;
  --gold-deep: #855c14;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --label: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

html[dir="rtl"] {
  --serif: "Amiri", "Cormorant Garamond", Georgia, serif;
  --sans: "IBM Plex Sans Arabic", "Work Sans", Arial, sans-serif;
  --label: "IBM Plex Sans Arabic", "Instrument Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { line-height: 1.85; }

img { display: block; max-width: 100%; }
a { color: var(--ink); }
p { text-wrap: pretty; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: 30px; line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.25; }

[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.2; }
[dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; }

.shell {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 22px;
}

.eyebrow {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 18px;
}

.lede {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-3);
}

[dir="rtl"] .lede { line-height: 1.6; }

.band { padding: 76px 0; }
.band-tight { padding: 54px 0; }
.band-sunken { background: var(--bone-2); }

.band-dark { background: var(--ink); color: var(--bone); }
.band-dark h2, .band-dark h3 { color: var(--bone); }
.band-dark .eyebrow { color: var(--gold); }
.band-dark p { color: rgba(250, 246, 239, .74); }

.rule { height: 1px; border: 0; margin: 0; background: var(--line); }

.band-head { margin-bottom: 46px; }
.stack-head { margin-bottom: 52px; }
.self-end { align-self: end; }

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 18px 0;
  transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease;
}

.masthead.is-stuck {
  background: rgba(250, 246, 239, .93);
  backdrop-filter: blur(10px);
  padding: 11px 0;
  box-shadow: 0 1px 0 var(--line);
}

.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.mark-icon { width: 28px; height: 28px; flex: none; transition: transform .55s var(--ease); }
.mark-word { width: 106px; height: 17px; flex: none; }
.mk-frame { fill: var(--gold); transition: fill .4s ease; }
.mk-core { fill: currentColor; }
.mark:hover .mark-icon { transform: rotate(22.5deg); }
.mark:hover .mk-frame { fill: var(--gold-deep); }
.on-dark .mark:hover .mk-frame,
.footer .mark:hover .mk-frame { fill: var(--gold-lit); }

.btn-arrow {
  width: 26px;
  height: 8px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
  transition: transform .3s var(--ease);
}

[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
.btn:hover .btn-arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(3px); }

.on-dark .mark, .on-dark .nav a, .on-dark .burger span { color: var(--bone); }
.on-dark .burger span { background: var(--bone); }

.burger {
  width: 34px;
  height: 26px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.burger span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform .3s ease, opacity .25s ease;
}

.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
[dir="rtl"] .burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(-45deg); }
[dir="rtl"] .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(45deg); }

.nav {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 30px;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.6, 0, .2, 1);
}

.nav.is-open { transform: translateY(0); }

.nav a {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--bone);
  text-decoration: none;
  padding: 9px 0;
  opacity: 0;
  transform: translateY(14px);
}

.nav.is-open a { animation: navIn .5s var(--ease) forwards; }
.nav.is-open a:nth-child(2) { animation-delay: .07s; }
.nav.is-open a:nth-child(3) { animation-delay: .14s; }

@keyframes navIn { to { opacity: 1; transform: translateY(0); } }

.nav a[aria-current="page"] { color: var(--gold); }
.nav .lang { font-family: var(--serif); }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--bone);
}

.hero-short { min-height: 74vh; }

.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img { animation: drift 26s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 9, 6, .88) 6%, rgba(12, 9, 6, .34) 58%, rgba(12, 9, 6, .5) 100%);
}

.hero-body {
  position: relative;
  padding: 130px 0 62px;
  max-width: 720px;
}

.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--bone); }

.hero .lede {
  color: rgba(250, 246, 239, .82);
  margin: 22px 0 0;
  max-width: 46ch;
}

.page-head { padding: 132px 0 46px; }
.page-head .lede { margin: 20px 0 0; max-width: 44ch; }

.head-email { margin: 22px 0 0; font-size: 16px; }
.head-email a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
.head-email a:hover { color: var(--gold-deep); }

.split { display: grid; gap: 34px; }
.split-copy p { margin: 0 0 17px; max-width: 62ch; color: var(--mute); }
.split-copy p:last-child { margin-bottom: 0; }
.split-copy h2 { margin-bottom: 18px; }

.lead-out p { margin: 0 0 18px; }
.lead-out p:last-of-type { margin-bottom: 26px; }

.figure { position: relative; overflow: hidden; margin: 0; }

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.figure:hover img { transform: scale(1.045); }
.figure-tall { aspect-ratio: 4 / 5; }
.figure-wide { aspect-ratio: 16 / 10; }

.caption {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 11px 0 0;
}

.caption-note { margin-top: 34px; max-width: 56ch; line-height: 1.8; }

.figure-note { max-width: 60ch; margin: 30px 0 0; color: var(--mute); font-size: 16px; }

.work { display: grid; gap: 1px; background: var(--line); }

.work-item {
  background: var(--bone);
  padding: 0 0 34px;
  position: relative;
  transition: background-color .4s ease;
}

.work-item:hover { background: #fffdf9; }
.work-item > :not(.work-media) { padding-inline: 26px; }

.work-media { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 26px; }

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.work-item:hover .work-media img { transform: scale(1.05); }

.work-item .num {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 20px;
}

.work-item p { margin: 12px 0 0; color: var(--mute); font-size: 15px; }

.stack { display: grid; gap: 52px; }

.entry { display: grid; gap: 24px; }
.entry h3 { margin-bottom: 4px; }
.entry p { margin: 0; color: var(--mute); }

.principle {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.principle h3 { font-size: 24px; }
.principle p { margin: 0; color: var(--mute); max-width: 60ch; }

.pull {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  max-width: 42ch;
  margin: 0;
}

.pull em { color: var(--gold); font-style: italic; }

.orgs { display: grid; gap: 1px; background: rgba(250, 246, 239, .16); margin-top: 34px; }

.org {
  background: var(--ink);
  padding: 24px 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color .35s ease;
}

.org:hover { background: var(--ink-3); }

.org-logo {
  height: 36px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  opacity: .82;
  transition: opacity .35s ease;
}

.org-logo--stacked { height: 56px; }
.org-logo--wide { height: 30px; }
.org:hover .org-logo { opacity: 1; }

.org-host {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(250, 246, 239, .5);
  word-break: break-all;
}

.org .arrow { color: var(--gold); transition: transform .35s ease; flex: none; }
.org:hover .arrow { transform: translateX(5px); }

.offices { display: grid; gap: 44px; }

.office .figure-wide { margin: 0 0 calc(22px + 1rem); }
.office h3 { font-size: 27px; margin-bottom: 16px; }

.office dl {
  margin: 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.office dt {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.office dd { margin: 4px 0 0; color: var(--mute); font-size: 15px; }
.office dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
.office dd a:hover { color: var(--gold-deep); }

.notice {
  border: 1px solid var(--line);
  padding: 30px 26px;
  background: var(--bone);
}

.notice h3 { margin-bottom: 14px; }
.notice p { margin: 0; color: var(--mute); max-width: 68ch; }
.notice p + p { margin-top: 16px; }

.prose { max-width: 66ch; }
.prose p { color: var(--mute); margin: 0 0 18px; }
.prose h2 { margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 12px; font-size: 19px; }
.prose ul { margin: 0 0 18px; padding-left: 20px; color: var(--mute); }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--gold-deep); }
[dir="rtl"] .prose ul { padding-right: 20px; padding-left: 0; }

.oops {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 100px 22px 60px;
}

.oops .code { font-family: var(--label); font-size: 11px; letter-spacing: .3em; color: var(--gold-deep); }
.oops h1 { margin: 20px 0 18px; }
.oops p { color: var(--mute); max-width: 40ch; margin: 0 auto 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 27px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s ease, transform .18s ease;
}

.btn:hover { background: var(--ink-3); }
.btn:active { transform: scale(.975); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-lit); }
.btn-line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover { background: rgba(21, 16, 11, .05); }

.footer { background: var(--ink); color: var(--bone); padding: 60px 0 26px; }
.footer .mark { color: var(--bone); }
.footer-in { display: grid; gap: 34px; }
.footer nav { display: grid; gap: 9px; }

.footer nav a {
  color: rgba(250, 246, 239, .66);
  text-decoration: none;
  font-size: 15px;
  width: fit-content;
  transition: color .3s ease;
}

.footer nav a:hover { color: var(--gold); }

.rights {
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 246, 239, .14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(250, 246, 239, .44);
}

.rights-links { display: flex; flex-wrap: wrap; gap: 22px; }

.rights a {
  color: rgba(250, 246, 239, .44);
  text-decoration: none;
  transition: color .3s ease;
}

.rights a:hover { color: var(--gold); }

.office dd, .rights, .oops .code, .work-item .num { font-variant-numeric: tabular-nums; }
.office dd a { white-space: nowrap; }

[dir="rtl"] .eyebrow,
[dir="rtl"] .caption,
[dir="rtl"] .rights,
[dir="rtl"] .office dt,
[dir="rtl"] .work-item .num,
[dir="rtl"] .oops .code,
[dir="rtl"] .btn,
[dir="rtl"] .mark span { letter-spacing: normal; }

[dir="rtl"] [dir="ltr"] { text-align: right; }

.reveals .reveal { opacity: 0; transform: translateY(24px); }

.reveals .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .85s ease, transform .85s var(--ease);
}

.reveal-d1.is-in { transition-delay: .09s; }
.reveal-d2.is-in { transition-delay: .18s; }
.reveal-d3.is-in { transition-delay: .27s; }

.cookie {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  background: var(--bone);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -18px rgba(34, 27, 20, .38);
  padding: 24px 22px;
  transform: translateY(130%);
  transition: transform .6s cubic-bezier(.2, .8, .25, 1);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
}

.cookie.is-up { transform: translateY(0); }
.cookie h2 { font-size: 22px; margin-bottom: 10px; }
.cookie p { margin: 0; color: var(--mute); font-size: 14px; }
.cookie p a { color: var(--gold-deep); }

.cookie-actions { display: grid; gap: 9px; margin-top: 20px; }

.cookie-actions .btn {
  justify-content: center;
  white-space: nowrap;
  letter-spacing: .1em;
  padding: 15px 16px;
}

:where(a, button, input):focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

@media (min-width: 640px) {
  h1 { font-size: 54px; }
  h2 { font-size: 36px; }
  .band { padding: 96px 0; }
  .work { grid-template-columns: 1fr 1fr; }
  .cookie { left: auto; right: 22px; bottom: 22px; width: 430px; padding: 28px 26px; }
  [dir="rtl"] .cookie { left: 22px; right: auto; }
  .cookie-actions { grid-template-columns: 1fr 1fr; }
  .offices { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-in { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .shell { padding: 0 40px; }
  h1 { font-size: 68px; }
  h2 { font-size: 42px; }
  .lede { font-size: 23px; }
  .band { padding: 118px 0; }
  .burger { display: none; }

  .nav {
    position: static;
    inset: auto;
    flex-direction: row;
    background: none;
    padding: 0;
    gap: 30px;
    transform: none;
  }

  .nav a {
    font-size: 14px;
    font-family: var(--sans);
    color: var(--ink);
    opacity: 1;
    transform: none;
    animation: none;
    padding: 4px 0;
    position: relative;
  }

  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
  }

  [dir="rtl"] .nav a::after { transform-origin: right; }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: var(--ink); }
  .on-dark .nav a[aria-current="page"] { color: var(--bone); }
  .nav .lang { font-size: 15px; opacity: .8; }
  .nav .lang:hover { opacity: 1; }

  .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .split-wide { grid-template-columns: 1.15fr .85fr; }
  .split-narrow { grid-template-columns: .8fr 1.2fr; }
  .work { grid-template-columns: repeat(3, 1fr); }
  .work-item { padding-bottom: 46px; }
  .work-item > :not(.work-media) { padding-inline: 32px; }
  .entry { grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
  .entry-flip > .figure { order: 2; }
  [dir="rtl"] .entry-flip > .figure { order: 0; }
  [dir="rtl"] .entry-flip > div { order: 2; }
  .stack { gap: 96px; }
  .page-head { padding: 178px 0 62px; }
  .pull { font-size: 32px; }
  .orgs { grid-template-columns: repeat(3, 1fr); }
  .org { flex-direction: column; align-items: flex-start; min-height: 148px; padding: 28px 26px; }
  .notice { padding: 44px 40px; }
  .footer { padding: 84px 0 30px; }
  .figure-note { margin-left: auto; padding-left: 40px; }
  [dir="rtl"] .figure-note { margin-left: 0; margin-right: auto; padding-left: 0; padding-right: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .reveals .reveal { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; }
}
